mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-28 19:20:17 +00:00
10 lines
277 B
TypeScript
Vendored
10 lines
277 B
TypeScript
Vendored
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`;
|