@launchdarkly/eventsource - v0.2.5
    Preparing search index...

    Interface FetchBodyReader

    A reader over the response body stream. read resolves with the next chunk, or with done: true when the server ends the stream, and rejects when the connection terminates before the server ends the stream.

    interface FetchBodyReader {
        cancel?(): void | Promise<unknown>;
        read(): Promise<{ done: boolean; value?: Uint8Array<ArrayBufferLike> }>;
    }
    Index
    • Releases the reader and its connection. A standard reader always has it; it is optional so a minimal injected transport can omit it. The client calls it on teardown, because the abort signal alone cannot release a transport that ignores the signal.

      Returns void | Promise<unknown>

    • Returns Promise<{ done: boolean; value?: Uint8Array<ArrayBufferLike> }>