Skip to main content

Module sse

Module sse 

Source
Expand description

Server-Sent Events (SSE) Parser

Implements standard SSE protocol parsing with support for:

  • event: and data: field parsing
  • Multi-line data fields
  • CRLF and LF line endings
  • Stream reconnection

Structsยง

NewlineDecoder
Newline Decoder for byte-level buffering Handles both CRLF and LF line endings
SSEDecoder
SSE Event Decoder Parses SSE protocol line by line
SSEEvent
SSE Event structure
SSEStream
SSE Stream wrapper for high-level SSE processing