first commit
This commit is contained in:
6
public/js_game/battleship.js
Normal file
6
public/js_game/battleship.js
Normal 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 } });
|
||||
|
||||
Reference in New Issue
Block a user