Dispose this object.
Serves the event stream to a client; registered as the route's request handler by ExternalApiRouter#eventStream.
Schedules a coalesced broadcast of a fresh snapshot to all connected clients. No-op without a configured snapshot provider or without connected clients.
Sends the data to all connected clients immediately, bypassing the coalescing.
Serves data as server-sent events to the clients of an external API endpoint.
The stream manages the connected clients, sends periodic keep-alive comments, delivers the configured snapshot to connecting clients, and broadcasts, coalescing bursts, a fresh snapshot when notifyChanged is called. Disposing the stream ends all client connections; streams created through
ExternalApiRouter#eventStreamare disposed automatically when the routing is rebuilt, so that clients reconnect against the new configuration.