# Server.clients(where:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/FilteredListings.swift#L97
- **Page:** https://libtmux.org/en/swift/latest/reference/server-clients(where-)/

```
Server.clients(where:)(where: FilterExpr<Client>) -> [Client]
```

Clients matching `expression`.

The one listing here that does not push its filter to tmux. `-f` reached
`list-clients` in tmux 3.4, three releases after this package's floor,
and asking an older server for it fails the whole listing rather than
being ignored. Version-gating it would buy nothing worth the round trip:
a server has one client per attachment, so there is no long list to
narrow. The expression is applied here, and the answer is the same.

## Raises

- `FilteredListingError`
