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

Method disconnect

web/lib/collaboration/socket.ts:266–276  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

264 }
265
266 disconnect(): void {
267 // Set max attempts to prevent reconnect
268 this.reconnectAttempts = this.maxReconnectAttempts;
269 if (this.reconnectTimer) {
270 clearTimeout(this.reconnectTimer);
271 this.reconnectTimer = null;
272 }
273 this.stopPing();
274 this.ws?.close();
275 this.ws = null;
276 }
277
278 send(event: OutgoingEvent): void {
279 if (this.ws?.readyState !== WebSocket.OPEN) return;

Callers 1

useCollaborationFunction · 0.95

Calls 2

stopPingMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected