Session.equals
Whether other is this same session on this same server.
Source and package
- Qualified name
-
Session.equals - Module
- session
- Declared in
Session- Package
- libtmux
- Source
- packages/libtmux/src/session.ts
-
Description#
The socket, the daemon that answered, and
$nall have to match. tmux ids are unique only within one running daemon and a restart reissues$0to 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