1 let host = `${window.location.hostname}`;
2 let port = `${window.location.port == "4444" ? '8536' : window.location.port}`;
3 let endpoint = `${host}:${port}`;
4 export let wsUri = `${(window.location.protocol=='https:') ? 'wss://' : 'ws://'}${endpoint}/api/v1/ws`;