# types.TmuxEventStream.ready

- **Module:** types.TmuxEventStream
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/types.ts#L856
- **Page:** https://libtmux.org/reference/ts/types-tmuxeventstream-ready/

```
types.TmuxEventStream.ready() -> Promise<void>
```

Resolve once tmux has accepted the current attach, or reject with its reason.

A control client is told nothing that happened before it attached, so a
change made between opening the stream and that moment is never announced
to it. Await this before making the change you intend to observe, or the
wait for it can outlive the event. During reconnect this waits for the
replacement client, and rejects if the connection cannot recover.
