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

Method scheduleReconnect

src/remote/SessionsWebSocket.ts:290–299  ·  view source on GitHub ↗
(delay: number, label: string)

Source from the content-addressed store, hash-verified

288 }
289
290 private scheduleReconnect(delay: number, label: string): void {
291 this.callbacks.onReconnecting?.()
292 logForDebugging(
293 `[SessionsWebSocket] Scheduling reconnect (${label}) in ${delay}ms`,
294 )
295 this.reconnectTimer = setTimeout(() => {
296 this.reconnectTimer = null
297 void this.connect()
298 }, delay)
299 }
300
301 private startPingInterval(): void {
302 this.stopPingInterval()

Callers 1

handleCloseMethod · 0.95

Calls 2

connectMethod · 0.95
logForDebuggingFunction · 0.85

Tested by

no test coverage detected