NexusMCP.SSE (NexusMCP v0.3.0)

Copy Markdown View Source

SSE (Server-Sent Events) connection handler.

Manages the chunked response loop for SSE streams. Sends keepalive comments periodically to detect broken connections.

Summary

Functions

Start an SSE stream on the given connection.

Functions

start_stream(conn, session_pid)

Start an SSE stream on the given connection.

Sends the initial headers and enters a receive loop. This function blocks until the connection is closed or an error occurs.