# client.Client

- **Module:** client
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/client.ts#L19
- **Page:** https://libtmux.org/en/ts/latest/reference/client-client/

One client attached to a tmux server, as a handle rather than a copy of it.

Reached from {@link Server.clients}; the constructor throws. A client is the
shortest-lived thing here — it goes away when its terminal does — so
{@link Client.session} reports `undefined` once it has detached, and every
other read reflects the moment the handle was made.

## Members

- `clientBrand` (attribute)
- `server` (attribute): The server this handle addresses.
- `constructor` (method)
- `session` (method): The session this client is attached to, if it is still attached.
- `window` (method): The window placement this client currently shows.
- `pane` (method): The pane this client currently has active.
- `refreshed` (method): This client, read again at a new instant.
- `detach` (method): Detach this client from its server.
- `switchTo` (method): Point this client at a different session.
- `equals` (method)
- `toString` (method): How this handle renders in a log line, a template literal, or an error.
- `format` (property): The raw tmux format row, addressed by tmux's own token names.
