()
| 267 | } |
| 268 | |
| 269 | function onDisconnect(): void { |
| 270 | connected = false |
| 271 | ws = null |
| 272 | setStatus('disconnected') |
| 273 | stopPing() |
| 274 | showOverlay(reconnectOverlay) |
| 275 | scheduleReconnect() |
| 276 | } |
| 277 | |
| 278 | function scheduleReconnect(): void { |
| 279 | if (reconnectTimer) clearTimeout(reconnectTimer) |
nothing calls this directly
no test coverage detected