# types.ConnectedServer

- **Module:** types
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** interface
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/types.ts#L868
- **Page:** https://libtmux.org/reference/ts/types-connectedserver/

A server bound to one control-mode connection.

Same API as {@link Server}, with its commands travelling over the open
connection rather than a process per call. Disposing it ends the connection.

## Members

- `close` (method) — End the connection. Safe to call more than once.
- `subscribe` (method) — Open an independent view of the notifications arriving on this connection.
- `subscribeFormat` (method) — Report a format whenever tmux expands it to a new value.
- `unsubscribeFormat` (method) — Stop reporting a subscription. Unknown names are accepted.
- `waitFor` (method) — Resolve once the server satisfies `matches`, or reject on timeout.
- `[Symbol.asyncDispose]` (method)
