This commit is contained in:
CHIBOUB Chakib
2024-09-11 19:02:54 +02:00
6 changed files with 90 additions and 6 deletions

View File

@@ -360,7 +360,7 @@ document.addEventListener('DOMContentLoaded', () => {
}
function startWebSocketConnection(token, players) {
socket = new WebSocket(`ws://${window.location.host}/ws/game/`);
socket = new WebSocket(`wss://${window.location.host}/ws/game/`);
socket.onopen = function (event) {
console.log('WebSocket connection established');