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

Update app.js

parent 49efcd0e
Branches
No related tags found
No related merge requests found
......@@ -66,10 +66,18 @@ io.on('connection', (socket) => {
socket.broadcast.emit('play', data); // On diffuse à tous les clients
});
socket.on('roque', (data) => {
console.log(`[Server] Play reçu : ${JSON.stringify(data)}`); // Debugging
<<<<<<< Updated upstream
socket.on('echec', () => {
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