({ websocket })
| 224 | } |
| 225 | |
| 226 | function onWebSocketClose({ websocket }) { |
| 227 | if (typeof websocket[kInspectorRequestId] !== 'string') { |
| 228 | return; |
| 229 | } |
| 230 | Network.webSocketClosed({ |
| 231 | requestId: websocket[kInspectorRequestId], |
| 232 | timestamp: getMonotonicTime(), |
| 233 | }); |
| 234 | } |
| 235 | |
| 236 | module.exports = registerDiagnosticChannels([ |
| 237 | ['undici:request:create', onClientRequestStart], |
nothing calls this directly
no test coverage detected