The event shape to use for parsing the stream data.
OptionalsignalAn abort signal to stop the stream.
OptionalreconnectionWhether transparent mid-stream reconnection is enabled on resumable SSE endpoints. Defaults to true. Has no effect on non-resumable endpoints.
OptionalmaxMaximum number of consecutive failed reconnect attempts on resumable SSE endpoints before giving up. The counter resets to zero each time a reconnected stream successfully yields at least one event (i.e. makes progress). Has no effect on non-resumable endpoints.
OptionalreconnectA function that re-issues the HTTP request with the Last-Event-ID header and returns the new response body stream. Required for reconnection to work.
The HTTP response stream to read from.