Yield the data payload of each server-sent event in a response body.
Multi-line data fields join with \n; comments and other fields are
ignored. Aborting signal cancels the reader and ends iteration; callers
check signal.aborted afterwards.
Parameters
body: ReadableStream<Uint8Array<ArrayBufferLike>>
Response body stream.
Optionalsignal: AbortSignal
Optional abort signal that cancels a stalled read.
Yield the
datapayload of each server-sent event in a response body.Multi-line
datafields join with\n; comments and other fields are ignored. Abortingsignalcancels the reader and ends iteration; callers checksignal.abortedafterwards.