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

server.ServerOptions.onInvocation

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
ServerOptions
Package
libtmux
Source
packages/libtmux/src/server.ts
onInvocation : : TmuxInvocationObserver
propertyreadonly [source]
propertyreadonly [source]
onInvocation

Called once per tmux invocation, after it answers or fails.

The seam for logs, traces and metrics. Every command this server runs reports here, a custom engine's included, and an observer cannot change what a command does — see TmuxInvocationObserver .

Examples

const traced = new Server({
onInvocation: (report) => {
console.log(report.commands[0]?.[0], report.durationMs, report.delivery);
},
});

0 declared, 0 inherited

Esc

Type to search.