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?: string
concat: ((left, right) => string)

Type declaration

    • (left, right): string
    • Parameters

      • left: string
      • right: string

      Returns string

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

Type declaration

    • (what): number
    • Parameters

      • what: string

      Returns number

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

Type declaration

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

      • what: string
      • Optional start: number
      • Optional end: number

      Returns string

timeout?: Timeout

Accessors

Methods