MCPcopy Create free account
hub / github.com/Noumena-Network/code / scheduleReconnect

Method scheduleReconnect

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

Source from the content-addressed store, hash-verified

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

Callers 1

handleCloseMethod · 0.95

Calls 2

connectMethod · 0.95
logForDebuggingFunction · 0.50

Tested by

no test coverage detected