MCPcopy
hub / github.com/codeaashu/claude-code / disconnect

Method disconnect

src/remote/RemoteSessionManager.ts:309–314  ·  view source on GitHub ↗

* Disconnect from the remote session

()

Source from the content-addressed store, hash-verified

307 * Disconnect from the remote session
308 */
309 disconnect(): void {
310 logForDebugging('[RemoteSessionManager] Disconnecting')
311 this.websocket?.close()
312 this.websocket = null
313 this.pendingPermissionRequests.clear()
314 }
315
316 /**
317 * Force reconnect the WebSocket.

Callers 3

useRemoteSessionFunction · 0.95
useSSHSessionFunction · 0.45
useDirectConnectFunction · 0.45

Calls 3

logForDebuggingFunction · 0.85
closeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected