Options
All
  • Public
  • Public/Protected
  • All
Menu

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

  • BufferingStream

Index

Constructors

Properties

buffer?: Buffer
emitInterval: number
maxChunkSize: number
onDataEmitter: Emitter<Buffer> = ...
timeout?: Timeout

Accessors

  • get onData(): Event<Buffer>

Methods

  • dispose(): void
  • emitBufferedChunk(): void
  • push(chunk: Buffer): void