# server.Server.raiseIfDead

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

```
server.Server.raiseIfDead() -> 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.raiseIfDead(); // throws when no tmux server is listening
```
