Fix: Update WebSocket server address to include port

Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
This commit is contained in:
2025-09-01 11:49:19 +09:00
parent 6b87c7b0c4
commit f5312dab17

View File

@@ -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.