From 3b1b4f63e2df6fbba1cb90cfca79a52186d593a2 Mon Sep 17 00:00:00 2001 From: Jacob Date: Sat, 28 Feb 2026 16:04:47 -0500 Subject: [PATCH] Updated server point. --- client/public/wsModule.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/public/wsModule.js b/client/public/wsModule.js index 58d4b63..a4efaae 100644 --- a/client/public/wsModule.js +++ b/client/public/wsModule.js @@ -30,13 +30,13 @@ import { renderChat } from "./render.js"; * @returns {{ socket: WebSocket, sendMessage: (content: string) => void }} */ export function initWebSocket(username, chatEl, inputContainer, usersListEl) { - const socket = new WebSocket("ws://localhost:8080"); - /*(location.protocol === "https:" ? "wss" : "ws") + + const socket = new WebSocket( //"ws://localhost:8080"); + (location.protocol === "https:" ? "wss" : "ws") + "://" + location.host + "/ws", "coms", - );*/ + ); socket.onopen = () => { // Announce join.