I’m trying SocketIO and I’m stuck. I can’t find any proper documentation.
Here is a sample code of what I’d like to do :
io.sockets.in('group1').join('group2');
io.sockets.in('group3').on('message', function(){});
Is there any workaround to those two particular actions ?
The function io.sockets.clients is what I needed. It allows me to traverse the clients of a specific room, adding them to a group if necessary, or registering an event.