# tmux.Server.ListClients

- **Module:** tmux.Server
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/server_keys.go#L211
- **Page:** https://libtmux.org/en/go/latest/reference/tmux-server-listclients/

```
tmux.Server.ListClients(ctx: context.Context) -> ([]string, error)
```

ListClients returns an owned snapshot of raw tmux client-description lines, the text tmux itself prints. A list failure is returned rather than answered with no rows. [Server.Clients] answers the same question as typed [Client] records and is what most callers want.
