# io.github.libtmux.scaladsl.live.LiveView.attach

- **Module:** io.github.libtmux.scaladsl.live
- **Package:** io.github.libtmux:libtmux-scala_3
- **Language:** Scala
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/f56392b5d9bc7f1f9c1631842333fb90f3d82d40/libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala#L43
- **Page:** https://libtmux.org/en/scala/latest/reference/io-github-libtmux-scaladsl-live-liveview-attach/

```
def attach(anchor: Session): LiveView

def attach(anchor: Session, refreshEvery: Duration): LiveView
```

Listens through a control client attached to `anchor`, rebuilding on every announcement.

## Parameters

- `anchor` (`Session`)
- `refreshEvery` (`Duration`) (for `attach(anchor, refreshEvery)`)
