mcl_core_lan_entry_events (mcl_core v1.0.0)
View SourceThe LAN entry point's GET /lan/v1/events?topic=T (mcl_core_lan_entry, docs/DESIGN.md §4.2, mcl-core#4): a topic's LAN events as server-sent events, to a member holding a token.
The stream joins the topic's pg group, as a LAN subscriber does, so every LAN publish on the topic reaches it, at most once. Each event is data: {"topic", "payload", "meta"} with the publisher as a hex node id. The list is read again on each event and on a tick every ?TICK_MS (which also keeps the connection from going idle), so a member taken off it loses the stream within one tick; the stream ends when the token expires.