blob: a57b93498fcd533993f025b9c654735ef5795456 (
plain)
1
2
3
4
5
6
7
8
9
|
const host = `${window.location.hostname}`;
const port = `${
window.location.port == '4444' ? '8540' : window.location.port
}`;
const endpoint = `${host}:${port}`;
export const wsUri = `${
window.location.protocol == 'https:' ? 'wss://' : 'ws://'
}${endpoint}/api/v1/ws`;
|