Skip to main content

start_sse_server

Function start_sse_server 

Source
pub fn start_sse_server(hub: Arc<SseHub>, port: u16)
Expand description

Start the SSE server on the given port.

Accepts TCP connections, performs minimal HTTP parsing, sends SSE headers, and registers the stream with the hub. The accept thread exits immediately after registration — no per-client thread is kept alive.