The engine's events as server-sent events, until the caller leaves.
GET/events
Each event's event field is its name, data its JSON and id its number in the stream.
Comments keep an idle stream alive every 15 seconds. A caller that falls too far behind
gets a lost event and is cut off: it reads the state again and reconnects. At most
eight streams are open at once.
Request
Responses
- 200
- 503
- default
The stream of events.
Too many event streams are open.
Any other failure: 401 without the right token (with WWW-Authenticate: Bearer), 404 for an
unknown path, 405 for a method the path does not take (with Allow), 429 after too many wrong
tokens, 500 when the request failed, 503 when the engine cannot answer in time.
Response Headers
WWW-Authenticate
Sent with 401 and 429.
Allow
Sent with 405, the methods the path takes.