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