parseSSE
View as Markdownfunction 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).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
stream |
ReadableStream<Uint8Array<ArrayBufferLike>> |
signal? |
AbortSignal |
Returns
Section titled “Returns”AsyncIterable<SSEFrame>