On this page
server.Server.hasSession
- Module
- server
- Declared in
- Server
- Package
- @libtmux/libtmux
- Source
- packages/libtmux/src/server.ts
-
Whether a session with this name exists.
The name is matched exactly. tmux normally accepts a unique prefix as a session target, which would make checking
workanswer yes forworkspace; this method does not.Examples
if (!(await server.hasSession("work"))) { await server.newSession({ name: "work" }); }
0 declared, 0 inherited