This commit is contained in:
Guillem George 2026-05-15 22:59:15 +02:00
parent 441f00507d
commit a0b5e97058
3 changed files with 52 additions and 23 deletions

View file

@ -8,3 +8,19 @@
// - createRoom (create a room)
// - updateRoom (update a room's configuration)
// - deleteRoom (delete a room)
//
// joinRoom notes
// io.on('connection', (socket) => {
// // join the room named 'some room'
// socket.join('some room');
// // broadcast to all connected clients in the room
// io.to('some room').emit('hello', 'world');
// // broadcast to all connected clients except those in the room
// io.except('some room').emit('hello', 'world');
// // leave the room
// socket.leave('some room');
// });