@avvyr/storefront-sdk - v0.19.0
    Preparing search index...

    Function readSseStream

    • 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).

      Parameters

      • body: ReadableStream<Uint8Array<ArrayBufferLike>>
      • onData: (data: string) => void

      Returns Promise<void>