# types.ConnectedServer.subscribe

- **Module:** types.ConnectedServer
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/types.ts#L937
- **Page:** https://libtmux.org/en/ts/latest/reference/types-connectedserver-subscribe/

```
types.ConnectedServer.subscribe() -> TmuxEventStream
```

Open an independent view of the notifications arriving on this connection.

Each call is its own subscription with its own buffer, so a `for await`
loop and a {@link waitFor} can run side by side.
