MCPcopy Index your code
hub / github.com/nodejs/node / onWebSocketClose

Function onWebSocketClose

lib/internal/inspector/network_undici.js:226–234  ·  view source on GitHub ↗
({ websocket })

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

getMonotonicTimeFunction · 0.85

Tested by

no test coverage detected