This component will buffer whatever is pushed to it and emit chunks back every BufferingStreamOptions.emitInterval. It will also ensure that the emitted chunks never exceed BufferingStreamOptions.maxChunkSize.

Hierarchy (view full)

Constructors

Properties

buffer?: Buffer
concat: ((left, right) => Buffer)

Type declaration

    • (left, right): Buffer
    • Parameters

      • left: Buffer
      • right: Buffer

      Returns Buffer

emitInterval: number
length: ((what) => number)

Type declaration

    • (what): number
    • Parameters

      • what: Buffer

      Returns number

maxChunkSize: number
onDataEmitter: Emitter<Buffer> = ...
slice: ((what, start?, end?) => Buffer)

Type declaration

    • (what, start?, end?): Buffer
    • Parameters

      • what: Buffer
      • Optional start: number
      • Optional end: number

      Returns Buffer

timeout?: Timeout

Accessors

Methods