kkk
This commit is contained in:
parent
441f00507d
commit
a0b5e97058
3 changed files with 52 additions and 23 deletions
|
|
@ -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');
|
||||
// });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue