interface StreamCollector ((stream) => Promise<Uint8Array<ArrayBufferLike>>)
  • A function that converts a stream into an array of bytes.

    Parameters

    • stream: any

      The low-level native stream from browser or Nodejs runtime

    Returns Promise<Uint8Array<ArrayBufferLike>>