(event: string, detail?: unknown)
| 236 | // --------------------------------------------------------------------------- |
| 237 | |
| 238 | export function traceWsLifecycle(event: string, detail?: unknown): void { |
| 239 | if (!isTraceEnabled()) return; |
| 240 | push({ |
| 241 | source: 'ws', |
| 242 | kind: 'ws:lifecycle', |
| 243 | eventType: event, |
| 244 | label: `ws ${event}`, |
| 245 | detail: detailOf(detail), |
| 246 | }); |
| 247 | } |
| 248 | |
| 249 | /** Outbound client frame (client_hello / subscribe / unsubscribe / abort / pong). */ |
| 250 | export function traceWsOut(frame: unknown): void { |
no test coverage detected