libtmux Reference MCP Search
On this page

session.Session.equals

View as Markdown

Module
session
Declared in
Session
Package
@libtmux/libtmux
Source
packages/libtmux/src/session.ts
equals ( other : : unknown ) boolean
method [source]
method [source]
equals

Whether other is this same session on this same server.

The socket, the daemon that answered, and $n all have to match. tmux ids are unique only within one running daemon and a restart reissues $0 to something else, so the daemon is part of the identity rather than a detail of how it was read. sameTmuxIdAs asks the weaker question.

Examples

session.equals(await session.refreshed()); // true

0 declared, 0 inherited

Esc

Type to search.