refator_comm1
This commit is contained in:
@@ -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)}`;
|
||||
|
Reference in New Issue
Block a user