first commit

This commit is contained in:
2024-04-01 01:56:05 +02:00
commit 5c64b4e147
102 changed files with 10838 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
const urlParams = new URLSearchParams(window.location.search);
const gameId = urlParams.get('game_id');
const userId = localStorage.getItem('userId');
const socket = io('/batalla', { closeOnBeforeunload: true, auth: { userId, gameId } });