mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-25 19:01:03 +00:00
4 lines
261 B
TypeScript
4 lines
261 B
TypeScript
let host = `${window.location.hostname}`;
|
|
let port = `${window.location.port == "4444" ? '8536' : window.location.port}`;
|
|
let endpoint = `${host}:${port}`;
|
|
export let wsUri = `${(window.location.protocol=='https:') ? 'wss://' : 'ws://'}${endpoint}/service/ws`;
|