Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

server.Server.isAlive

TypeScript

View as Markdown

Module
server
Declared in
Server
Package
libtmux
Source
packages/libtmux/src/server.ts
Other languages
Python Ruby Lua RustGoJava.NETC++Swift
isAlive ( ) → Promise<boolean>
method [source]
method [source]
isAlive

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.

Examples

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

Discussed in Socket and servers

In other ports Whether the server is running

0 declared, 0 inherited

Esc

Type to search.