add ssl to the project

This commit is contained in:
Adrien Audebert
2024-09-11 17:03:10 +02:00
parent 7fd8d73127
commit a099c3137f
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');