lemmy/ui/src/env.ts

3 lines
165 B
TypeScript
Raw Normal View History

export const endpoint = `${window.location.hostname}:8536`;
export let wsUri = (window.location.protocol=='https:') ? 'wss://' : 'ws://' + endpoint + '/service/ws';