# io.github.libtmux.scaladsl.cats.LiveServer

- **Module:** io.github.libtmux.scaladsl.cats
- **Package:** io.github.libtmux:libtmux-scala_3
- **Language:** Scala
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-java/blob/f56392b5d9bc7f1f9c1631842333fb90f3d82d40/libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/LiveServer.scala#L17
- **Page:** https://libtmux.org/en/scala/latest/reference/io-github-libtmux-scaladsl-cats-liveserver/

```
final class LiveServer[F[_]]

object LiveServer
```

Observe a tmux server through a continuously updated [[signal]].

[[LiveServer.attach]] returns a `Resource` that closes the Java
[[io.github.libtmux.snapshot.ServerMirror ServerMirror]] when released. Read
[[failure]] to distinguish a quiet server from a stopped poller.

## Members

### Other members

- `attach` (method): Listens through a control client attached to `anchor`, rebuilding on every announcement. The session is a required parameter: there is no arbitrary pick left to make, and a session that later disappears is `ServerMirror`'s own reconnect-or-`TargetGoneException` policy, surfaced through [[LiveServer#failure]] like any other cause.
- `failure` (method): `None` while still live; `Some(cause)` once the background poller has died. Never blocks.
- `signal` (property)
