From 238b2600f033c3d05b2e17e6eefebb40d438fd03 Mon Sep 17 00:00:00 2001 From: SEBASTIAN JN Date: Mon, 6 Jan 2025 12:07:37 -0300 Subject: [PATCH] feat(script): New socket production url Signed-off-by: SEBASTIAN JN --- www/src/js/cookie/start.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/www/src/js/cookie/start.js b/www/src/js/cookie/start.js index 46afea9..9be3e7e 100644 --- a/www/src/js/cookie/start.js +++ b/www/src/js/cookie/start.js @@ -21,9 +21,15 @@ function $message(text) { }; // connect the server to the socket +/* const socket = io("http://localhost:3000", { transports: ["websocket", "polling"], }); +*/ + +const socket = io("https://socket-hj1h.onrender.com", { + transports: ["websocket", "polling"], +}); let name = null; let code = null; @@ -154,4 +160,4 @@ $("#game_exit").on("click", () => { $("ui").hide(); $("#ranking").hide(); $("#start-screen").show(); -}); \ No newline at end of file +});