# types.ConnectionOptions.reconnect

- **Module:** types.ConnectionOptions
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/types.ts#L769
- **Page:** https://libtmux.org/reference/ts/types-connectionoptions-reconnect/

Reopen the connection when it drops unexpectedly.

Off by default: a stream that silently reattaches hides a tmux server
going away, and a caller that wants to know cannot get the notice back.
When enabled, a recovered connection reports itself as a `reconnected`
event so a consumer can tell that it missed whatever happened in the gap.

A reconnect restores event delivery; commands use separate tmux clients.
