Skip to main content

Module sse

Module sse 

Source
Expand description

Server-Sent Events framing.

Structs§

SseFormatter
Encodes events as text/event-stream frames.

Enums§

SseFrame
A data event or an SSE transport comment.

Functions§

comment
Encodes an SSE comment, prefixing every line to prevent frame injection.
frame
Wraps an arbitrary payload in an SSE data: block.