# LibTmux.Server.GetClientsAsync

- **Module:** LibTmux.Server
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Server.Clients.cs#L19
- **Page:** https://libtmux.org/reference/dotnet/libtmux-server-getclientsasync/

```
LibTmux.Server.GetClientsAsync(cancellationToken: CancellationToken) -> Task<IReadOnlyList<Client>>
```

Reads the clients attached to this server.

A server with no clients is the ordinary case rather than a failure, so
this answers empty when tmux cannot list them.

## Parameters

- `cancellationToken` (CancellationToken) — Cancels the tmux command.

## Returns

The clients tmux reports.
