MCPcopy
hub / github.com/vercel/next.js / handleDisconnect

Function handleDisconnect

turbopack/crates/turbopack-cli/js/src/entry/websocket.ts:71–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69 // let timer: NodeJS.Timeout
70
71 function handleDisconnect() {
72 source.close()
73 setTimeout(init, timeout)
74 }
75
76 const { hostname, port } = location
77 const protocol = getSocketProtocol(options.assetPrefix || '')

Callers

nothing calls this directly

Calls 2

closeMethod · 0.65
setTimeoutFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…