ConnectionOptions.bufferSize
How many events to hold for a consumer that has fallen behind.
Source and package
- Qualified name
-
ConnectionOptions. buffer Size - Module
- types
- Declared in
ConnectionOptions- Package
- libtmux
- Source
- packages/libtmux/src/types.ts
-
Description#
On overflow the oldest event is dropped and
TmuxEventStream.droppedcounts it. Buffering without a bound would let a slow consumer grow the heap until the process dies, which is worse than losing an event.