Web: more SocketIO documentation

Add that the OpenAPI specs also define the structures used for SocketIO
communication.
This commit is contained in:
Sybren A. Stüvel 2023-07-13 10:13:24 +02:00
parent b83b929e01
commit a5e405de16

View File

@ -42,5 +42,9 @@ system on the Manager/backend side:
`internal/manager/webupdates/worker_updates.go`
: sending worker-related updates.
`pkg/api/flamenco-openapi.yaml`
: the OpenAPI specification also includes the structures sent over SocketIO.
Search for `SocketIOJobUpdate`; the rest is defined in its vicinity.
For a relatively simple example of a job update broadcast, see
`func (f *Flamenco) SetJobPriority(...)` in `internal/manager/api_impl/jobs.go`.