(delay: number, label: string)
| 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() |
no test coverage detected