From f5312dab1781235ba1d568932671a5bf73861390 Mon Sep 17 00:00:00 2001 From: YoungSoo Shin Date: Mon, 1 Sep 2025 11:49:19 +0900 Subject: [PATCH] Fix: Update WebSocket server address to include port Signed-off-by: YoungSoo Shin --- page/src/websocket.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/page/src/websocket.js b/page/src/websocket.js index b551ff0..b0de65e 100644 --- a/page/src/websocket.js +++ b/page/src/websocket.js @@ -8,8 +8,8 @@ // The WebSocket instance, exported for potential direct access if needed. export let websocket; -// The WebSocket server address, derived from the current page's hostname. -const gateway = `ws://${window.location.hostname}/ws`; +// The WebSocket server address, derived from the current page's host (hostname + port). +const gateway = `ws://${window.location.host}/ws`; /** * Initializes the WebSocket connection and sets up event handlers.