ServerOptions.onInvocation
Called once per tmux invocation, after it answers or fails.
Source and package
- Qualified name
-
ServerOptions. on Invocation - Module
- server
- Declared in
ServerOptions- Package
- libtmux
- Source
- packages/libtmux/src/server.ts
- onInvocation : Tmux
Invocation Observer -
Description#
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);},});