server.ServerOptions.onInvocation
TypeScript
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- server
- Declared in
- ServerOptions
- Package
- libtmux
- Source
- packages/libtmux/src/server.ts
- onInvocation : : TmuxInvocationObserver
-
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