# LibTmux.PsmuxServer

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

- `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.
