refator_comm1

This commit is contained in:
Mateusz Gruszczyński
2025-10-18 21:59:24 +02:00
parent a48a10ed35
commit 6bb5e2715f
3 changed files with 69 additions and 80 deletions

View File

@@ -23,7 +23,6 @@ export const api = {
const proto = (location.protocol === 'https:') ? 'wss' : 'ws';
return `${proto}://${location.host}/ws/task?upid=${encodeURIComponent(upid)}&node=${encodeURIComponent(node)}`;
},
// NEW:
wsObserveURL: (sid) => {
const proto = (location.protocol === 'https:') ? 'wss' : 'ws';
return `${proto}://${location.host}/ws/observe?sid=${encodeURIComponent(sid)}`;