Create a new SSE server response. The underlying stream is created lazily.
ReadonlystreamThe underlying readable stream for writing SSE events.
Send a comment (heartbeat ping).
Send a "message" event.
Send a named event.
Send a typed JSON event.
Send a heartbeat comment to keep the connection alive.
Tell the client to reconnect after ms milliseconds.
Close the stream.
Build a standard SSE HTTP Response object.
Additional HTTP headers to merge with the SSE defaults.
A Response with content-type text/event-stream.
Builder for creating SSE-compatible server responses. Works with any runtime that supports the WHATWG Streams API.