@miller-tech/uap 1.109.1 → 1.110.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -685,6 +685,16 @@
685
685
  renderLiveEvents();
686
686
  } catch {}
687
687
  };
688
+ // Full live snapshot (cross-process) — used when the WebSocket is down so
689
+ // SSE alone keeps the dashboard live rather than falling to slow polling. (C)
690
+ eventSource.addEventListener('snapshot', (e) => {
691
+ if (ws && ws.readyState === WebSocket.OPEN) return;
692
+ try {
693
+ render(JSON.parse(e.data));
694
+ document.getElementById('ws-status').className = 'status-dot connected';
695
+ document.getElementById('refresh-info').textContent = 'Live (SSE) - ' + new Date().toLocaleTimeString();
696
+ } catch {}
697
+ });
688
698
  eventSource.onerror = () => { eventSource.close(); setTimeout(connectSSE, 5000); };
689
699
  } catch {}
690
700
  }