Skip to content
Snippets Groups Projects
Commit eb98b89d authored by De Brettes Thomas's avatar De Brettes Thomas
Browse files

Update app.js

parent 9422dfdf
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,7 @@ io.on('connection', (socket) => {
});
socket.on('roque', (data) => {
console.log(`[Server] Play reçu : ${JSON.stringify(data)}`); // Debugging
<<<<<<< Updated upstream
socket.broadcast.emit('roque', data); // On diffuse à tous les clients
});
......@@ -75,6 +76,11 @@ io.on('connection', (socket) => {
socket.broadcast.emit('echec');
});
=======
socket.broadcast.emit('roque', data); // On diffuse à tous les clients
});
>>>>>>> Stashed changes
socket.on('play again', (roomId) => {
const room = rooms.find(r => r.id === roomId);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment