# server.Server.checkAlive

- **Module:** server.Server
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/server.ts#L1008
- **Page:** https://libtmux.org/en/ts/latest/reference/server-server-checkalive/

```
server.Server.checkAlive() -> Promise<void>
```

Assert the server is reachable, raising with tmux's reason if not.

Every read already raises on an unreachable server, so this is not what
tells an empty result from a missing one — it is the assertion form of
{@link isAlive}, for a caller that wants the check and the reason without a
read to hang it on.

## Example

```ts
await server.checkAlive(); // throws when no tmux server is listening
```
