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

server.Server.clients

View as Markdown

Module
server
Declared in
Server
Package
libtmux
Source
packages/libtmux/src/server.ts
Other languages
PythonRuby Lua RustGoJava.NETC++Swift
clients ( ) → Promise<Selection<Client>>
methodasync [source]
methodasync [source]
clients

Every client attached to the server.

In other ports List the server's attached clients

Examples

const clients = await server.clients();
clients.map((entry) => entry.tty);
>>> with control_mode() as ctl:
... names = [c.client_name for c in server.clients]
... ctl.client_name in names
True

0 declared, 0 inherited

Esc

Type to search.