From 6fabcd52016c1e1e5dc6b1f3016a292d1653bf23 Mon Sep 17 00:00:00 2001 From: tonyzzp Date: Tue, 11 Jun 2024 14:59:52 +0800 Subject: [PATCH] client ws address --- client/src/lib/signal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/lib/signal.ts b/client/src/lib/signal.ts index 7d06a17..43ac1c0 100644 --- a/client/src/lib/signal.ts +++ b/client/src/lib/signal.ts @@ -22,7 +22,7 @@ export namespace signal { } myInfo = info let protocol = location.protocol == "https:" ? "wss" : "ws" - let url = import.meta.env.PROD ? `${protocol}://${location.hostname}:${location.port || 80}/ws` : "ws://localhost:80/ws" + let url = `${protocol}://${location.hostname}:${location.port || 80}/ws` console.log("signalServer", url) ws = new WebSocket(url) ws.onclose = () => {