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

server.Server.equals

TypeScript
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
server
Declared in
Server
Package
libtmux
Source
packages/libtmux/src/server.ts
equals ( other : : unknown ) → boolean
method [source]
method [source]
equals

Whether other is a handle addressing the same tmux server.

Compared by the socket the connection resolves to rather than by object identity, so a server constructed twice against one socket is equal to itself. A socket *name* is not that socket: tmux resolves -L work under TMUX_TMPDIR, so the same name with two different tmpdirs addresses two different daemons, and this reports them as different. Accepts unknown because the interesting comparisons are against values a caller has not narrowed yet.

Examples

server.equals(new Server({ socketPath: server.socketPath ?? "" }));

0 declared, 0 inherited

Esc

Type to search.