# LibTmux.PsmuxServer

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Psmux/PsmuxServer.cs#L15
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-psmuxserver/

Reads one isolated, single-session psmux namespace.

This type exposes only the query operations audited for the pinned psmux
build. It is intentionally separate from <see cref="Server" />, whose
lifecycle, mutation, chaining, and control-mode contracts require real tmux.
Each observation is bound to the session generation seen at connection time.
Use <see cref="RefreshAsync" /> to observe a replacement session.

## Members

### Collections and queries

- `GetWindowsAsync` (method): Reads every window in the sole session.
- `GetPanesAsync` (method): Reads every pane in the sole session.

### Other members

- `ConnectAsync` (method): Connects to a separately provisioned psmux namespace.
- `ConnectionOptions` (property): Gets the connection settings used for this observation.
- `GetSessionAsync` (method): Reads the sole visible session.
- `RefreshAsync` (method): Reconnects and returns a fresh server observation.
- `Version` (property): Gets the psmux compatibility version reported at connection time.
