Module backend::sse::broadcaster
source · Expand description
SSE broadcaster.
This module contains the Server-Sent Events broadcaster, which is responsible for keeping track of connected clients and broadcasting messages to them.
For broadcasting, the broadcaster takes a map_id
and an Action
and broadcasts the action to all clients connected to that map.
Structs§
- SSE broadcaster.
- Map that clients are connected to.