2019-04-09 15:03:58 +00:00
|
|
|
let host = `${window.location.hostname}`;
|
2019-10-19 00:20:27 +00:00
|
|
|
let port = `${window.location.port == '4444' ? '8536' : window.location.port}`;
|
2019-04-09 15:03:58 +00:00
|
|
|
let endpoint = `${host}:${port}`;
|
2019-10-19 00:20:27 +00:00
|
|
|
export let wsUri = `${
|
|
|
|
window.location.protocol == 'https:' ? 'wss://' : 'ws://'
|
|
|
|
}${endpoint}/api/v1/ws`;
|