2020-01-26 18:53:57 +00:00
|
|
|
const host = `${window.location.hostname}`;
|
2020-01-31 02:15:58 +00:00
|
|
|
const port = `${
|
2020-06-29 20:55:14 +00:00
|
|
|
window.location.port == '4444' ? '8536' : window.location.port
|
2020-01-31 02:15:58 +00:00
|
|
|
}`;
|
2020-01-26 18:53:57 +00:00
|
|
|
const endpoint = `${host}:${port}`;
|
|
|
|
|
2020-01-31 02:15:58 +00:00
|
|
|
export const wsUri = `${
|
2019-10-19 00:20:27 +00:00
|
|
|
window.location.protocol == 'https:' ? 'wss://' : 'ws://'
|
|
|
|
}${endpoint}/api/v1/ws`;
|