# types.ConnectedServer

- **Module:** types
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** interface
- **Source:** https://github.com/libtmux/libtmux-ts/blob/46cccfef2a546de55ce8b308249b8c76339089a0/packages/libtmux/src/types.ts#L1038
- **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

### Common operations

- [`waitFor`](/en/ts/latest/reference/types-connectedserver-waitfor/) (method): Resolve once the server satisfies `matches`, or reject on timeout.
- [`subscribeFormat`](/en/ts/latest/reference/types-connectedserver-subscribeformat/) (method): Report a format whenever tmux expands it to a new value.

### Other members

- [`[Symbol.asyncDispose]`](/en/ts/latest/reference/types-connectedserver-[symbol-asyncdispose]/) (method)
- [`close`](/en/ts/latest/reference/types-connectedserver-close/) (method): End the connection. Safe to call more than once.
- [`subscribe`](/en/ts/latest/reference/types-connectedserver-subscribe/) (method): Open an independent view of the notifications arriving on this connection.
- [`unsubscribeFormat`](/en/ts/latest/reference/types-connectedserver-unsubscribeformat/) (method): Stop reporting a subscription. Unknown names are accepted.
