# io.github.libtmux.Server.Server.sessions

- **Module:** io.github.libtmux.Server.Server
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/c3517519ee799428a809ce6deb1708c8be289cd1/libtmux/src/main/java/io/github/libtmux/Server.java#L519
- **Page:** https://libtmux.org/reference/java/io-github-libtmux-server-server-sessions/

```
io.github.libtmux.Server.Server.sessions() -> List<Session>
```

Every session, captured now.

<p>Lenient, by the libtmux contract these accessors have always had: a tmux failure produces
an empty list rather than raising, because "no sessions" is the ordinary answer and callers
mostly cannot act on the difference. Those that can use {@link #snapshot()}, which is strict.
