# types.ConnectionOptions.bufferSize

- **Module:** types.ConnectionOptions
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/types.ts#L816
- **Page:** https://libtmux.org/en/ts/latest/reference/types-connectionoptions-buffersize/

How many events to hold for a consumer that has fallen behind.

On overflow the oldest event is dropped and {@link TmuxEventStream.dropped}
counts it. Buffering without a bound would let a slow consumer grow the
heap until the process dies, which is worse than losing an event.
