Skip to content

readSseStream

readSseStream(response, options): Promise<void>

Defined in: sse.ts:116

Drain a fetch Response body as SSE.

Returns when the server closes the stream. Aborting via signal resolves rather than throwing: a component unmounting mid-stream is the normal way these end, not an error worth surfacing in a customer’s console.

Response

ReadSseOptions

Promise<void>