On this page
server.Server.raiseIfDead
- Module
- server
- Declared in
- Server
- Package
- @libtmux/libtmux
- Source
- packages/libtmux/src/server.ts
-
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
isAlive, for a caller that wants the check and the reason without a read to hang it on.Examples
await server.raiseIfDead(); // throws when no tmux server is listeningDiscussed in Socket and servers
0 declared, 0 inherited