fix: SSE via fetch for auth headers, remove query param auth, add heartbeat every 10s
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user