# types.ConnectedServer

- **Module:** types
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** interface
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/types.ts#L928
- **Page:** https://libtmux.org/en/ts/latest/reference/types-connectedserver/

A server with a persistent observation connection and daemon-lifetime tracking.

Commands use the ordinary command engine. Disposing it closes the observation
connection and leaves the tmux server and its resources running.

## 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)
