diff --git a/web/client/src/store/inventoryStore.js b/web/client/src/store/inventoryStore.js index a71cc65..5860ef2 100644 --- a/web/client/src/store/inventoryStore.js +++ b/web/client/src/store/inventoryStore.js @@ -29,6 +29,7 @@ function newCommandId() { let _httpPollTimer = null; let _wsHealthTimer = null; let _lastWsMessage = 0; +let _reconnectDelay = 1000; const HTTP_POLL_INTERVAL = 10_000; // Poll HTTP every 10 s as fallback const WS_STALE_TIMEOUT = 35_000; // If no WS message for 35 s → reconnect