Better reporting of and process for OTA updating

Add ability to request a reload to LinkButton and Link
Added exponential backoff to reconnection
Made the number of reconnect attempts settable
Doesn't attempt a reconnection if we intentionally disconnect
Make sure the fire-and-forget for TURN activity doesn't result in unhandled promise rejection.
Fix comment
Added force page reload to the onClose events of update/reboot
Ensure we get the correct UI version.
Fixed comment about the system update progress
Removed duplicate code between main and devices.$id
The isOnDevice and checkAuth can be leveraged from devices.$id.tsx
Extend retries to 2000 (which is 20000 seconds after backing off)
This commit is contained in:
Marc Brooks 2025-09-26 23:36:12 -05:00 committed by Adam Shiervani
parent 7955ee9d35
commit 1ca7713f3c
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ export default function KvmIdRoute() {
shouldReconnect(event: WebSocketEventMap['close']) { shouldReconnect(event: WebSocketEventMap['close']) {
console.debug("[Websocket] shouldReconnect", event); console.debug("[Websocket] shouldReconnect", event);
return !isLegacySignalingEnabled.current; return !isLegacySignalingEnabled.current && !connectionFailed;
}, },
onClose(event: WebSocketEventMap['close']) { onClose(event: WebSocketEventMap['close']) {