From 43a6b3c2e23ee7132dd6747367828157a5a2406a Mon Sep 17 00:00:00 2001 From: vincentastolfi Date: Fri, 24 May 2024 08:45:03 +0200 Subject: [PATCH] :green_heart: test CD with better client socket creation --- public/scripts/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/scripts/index.js b/public/scripts/index.js index c5efd32..ea0e6df 100644 --- a/public/scripts/index.js +++ b/public/scripts/index.js @@ -1,6 +1,8 @@ import { drawGrid, drawEnnemyGrid, play, selectPiece } from "./game.js"; -export const socket = io(); +export const socket = io("https://codefirst.iut.uca.fr/containers/vincentastolfi-maettleship:8081", { + withCredentials: true, +}); export let roomId = ""; function startConnection() {