# types.ConnectionOptions.bufferSize

- **Module:** types.ConnectionOptions
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/types.ts#L756
- **Page:** https://libtmux.org/reference/ts/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.
