# LibTmux.PsmuxServer

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Psmux/PsmuxServer.cs#L15
- **Page:** https://libtmux.org/reference/dotnet/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

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