web-stream-kit
    Preparing search index...

    Class ServerSentEventParseStream

    A TransformStream that parses raw SSE text streams into typed ServerSentEvent objects.

    Normalizes CRLF and CR line breaks to LF, preserves comments, and triggers dispatches on blank line boundaries.

    const eventStream = response.body
    .pipeThrough(new TextDecoderStream())
    .pipeThrough(new ServerSentEventParseStream());

    Hierarchy

    Index
    • Constructs a new ServerSentEventParseStream.

      Returns ServerSentEventParseStream

    readable: ReadableStream<ServerSentEvent>

    The readable read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream.

    MDN Reference

    writable: WritableStream<string>

    The writable read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream.

    MDN Reference