Skip to content
function parseSSE(stream, signal?): AsyncIterable<SSEFrame>;

Defined in: client/src/sse.ts:78

Parses a text/event-stream body. Decodes with stream: true so multi-byte characters split across chunks stay intact. Aborting signal cancels the body, even when the fetch that made it ignores aborts (a stream torn down while a mobile app was in the background never ends otherwise).

Parameter Type
stream ReadableStream<Uint8Array<ArrayBufferLike>>
signal? AbortSignal

AsyncIterable<SSEFrame>