@livekit/rtc-node
    Preparing search index...

    Class TextStreamReader

    A class to read chunks from a ReadableStream and provide them in a structured format.

    Hierarchy

    Index

    Constructors

    Properties

    bytesReceived: number
    onProgress?: (progress: undefined | number) => void
    reader: ReadableStream<DataStream_Chunk>
    totalByteSize?: number

    Accessors

    Methods

    • Async iterator implementation to allow usage of for await...of syntax. Yields structured chunks from the stream.

      Returns {
          next: () => Promise<IteratorResult<string, any>>;
          return(): IteratorResult<string>;
      }