node.js - how to delete a room in socket.io -
I want to remove all users statically from a room, the idea that effectively removing the room is In the future, the second room of the same name can be rebuilt in the future, but I want it to be made empty (listeners of the previous room).
I am not interested in managing the room itself but the situation is as though I can generate the socket. Is this possible? (See also)
Do you want to?
io .sockets.clients (someRoom). ForEach (function (s) {level (someRoom);});
or (untested):
io.sockets.in (someRoom). Skip (someRoom);
Comments
Post a Comment