# server.Server.isAlive

- **Module:** server.Server
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/server.ts#L939
- **Page:** https://libtmux.org/reference/ts/server-server-isalive/

```
server.Server.isAlive() -> Promise<boolean>
```

Whether the tmux server is reachable.

A missing daemon, socket, or tmux executable answers false. Cancellation,
a command deadline, or an engine programming error still raises: none says
whether the server is alive.

## Example

```ts
if (await server.isAlive()) {
  await server.snapshot();
}
```
