1 const host = `${window.location.hostname}`;
3 window.location.port == '4444' ? '8536' : window.location.port
5 const endpoint = `${host}:${port}`;
7 export const wsUri = `${
8 window.location.protocol == 'https:' ? 'wss://' : 'ws://'
9 }${endpoint}/api/v1/ws`;