fix: SSE via fetch for auth headers, remove query param auth, add heartbeat every 10s

This commit is contained in:
M1
2026-03-16 16:17:33 +04:00
parent 6d48a83560
commit 31d1fa7b04
3 changed files with 44 additions and 17 deletions
+1 -1
View File
@@ -91,7 +91,7 @@
// SSE: subscribe to all monitors after load so cards update in real time
const sseConnections = [];
async function subscribeAll() {
sseConnections.forEach(es => es.close());
sseConnections.forEach(es => es.abort());
sseConnections.length = 0;
const monitors = await api('/monitors/');
monitors.forEach(m => {