Skip to main content
Use wrapWs on the plugin instance to add lifecycle logs for WebSocket routes:
Each lifecycle event logs with HTTP method WS, the route path, duration, and optional wsId in context.

Request context on WebSockets

Accumulate context with the WebSocket instance as the key:

Disable WebSocket logs