Zum Hauptinhalt springen

GET /api/chain/aggregate/sse

One SSE per consumer (e.g. zeqstate.com's aggregator). Replaces N per-machine subscriptions. Only public-machine events reach this channel — private-machine events never leak.

Auth

None.

Response

HTTP/1.1 200 OK
Content-Type: text/event-stream

:ready

data: {"sm_id":"uuid","slug":"public-iot-fleet","parent_origin":"zeq-dev","type":"event","zeqond":2287439213,"stateHash":"…","transitionId":"uuid"}

:heartbeat

Notes

Subscribes to the global Redis channel zeq:public:events which is fanned out by chain.ts's recordEvent only when machine.isPublic === true. The handler unsubscribes on req.close, with peer-listener safety so other aggregator clients keep receiving.