Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-ts latest

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 $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
Parameters
Esc

Type to search.

Reference previewOpen reference