From 1ca7713f3cdcf3f9108dbaa45f8c19d82dd77615 Mon Sep 17 00:00:00 2001 From: Marc Brooks Date: Fri, 26 Sep 2025 23:36:12 -0500 Subject: [PATCH] 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) --- ui/src/routes/devices.$id.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/routes/devices.$id.tsx b/ui/src/routes/devices.$id.tsx index bae8faa6..82f33856 100644 --- a/ui/src/routes/devices.$id.tsx +++ b/ui/src/routes/devices.$id.tsx @@ -243,7 +243,7 @@ export default function KvmIdRoute() { shouldReconnect(event: WebSocketEventMap['close']) { console.debug("[Websocket] shouldReconnect", event); - return !isLegacySignalingEnabled.current; + return !isLegacySignalingEnabled.current && !connectionFailed; }, onClose(event: WebSocketEventMap['close']) {