Read an SSE response body to the end, calling onData with each event's data payload. Resolves when the server closes the stream. Rejects if reading fails (an abort included).
onData
Read an SSE response body to the end, calling
onDatawith each event's data payload. Resolves when the server closes the stream. Rejects if reading fails (an abort included).