Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Antenehden authored Aug 12, 2024
1 parent 760686c commit 5d2d4ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ <h3>Scores</h3>
const startGameButton = document.getElementById('startGameButton'); // Start button reference

function connectWebSocket() {
socket = new WebSocket('ws://localhost:9105');
url = "ws://" + window.location.hostname +":"+ (parseInt(location.port) + 100);
socket = new WebSocket(url);
socket.onopen = function () {
console.log('WebSocket connection established');
};
Expand Down

0 comments on commit 5d2d4ca

Please sign in to comment.