Skip to content

Commit

Permalink
feat(script): New socket production url
Browse files Browse the repository at this point in the history
Signed-off-by: SEBASTIAN JN <[email protected]>
  • Loading branch information
sebastianjnuwu authored Jan 6, 2025
1 parent 83bbc56 commit 238b260
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion www/src/js/cookie/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -154,4 +160,4 @@ $("#game_exit").on("click", () => {
$("ui").hide();
$("#ranking").hide();
$("#start-screen").show();
});
});

0 comments on commit 238b260

Please sign in to comment.