From 0f7a1e3bddafc175f1084cc3c2b4e3d91426dbd9 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 22 Jun 2024 12:19:01 +0200 Subject: connect to same host --- test-client/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test-client/main.ts') diff --git a/test-client/main.ts b/test-client/main.ts index 60a483d8..f6aa7e97 100644 --- a/test-client/main.ts +++ b/test-client/main.ts @@ -10,7 +10,7 @@ export let canvas: HTMLCanvasElement; let ws: WebSocket; document.addEventListener("DOMContentLoaded", () => { const ws_uri = window.location.protocol.endsWith("s:") - ? `wss://backend-${window.location.hostname}/` + ? `wss://${window.location.host}/` : `ws://${window.location.hostname}:27032/` ws = new WebSocket(ws_uri) ws.onerror = console.error -- cgit v1.2.3-70-g09d2