# types.ConnectedServer.subscribe

- **Module:** types.ConnectedServer
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/types.ts#L877
- **Page:** https://libtmux.org/reference/ts/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.
