Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
function getClient(roomId) {
var res = [],
room = io.sockets.adapter.rooms[roomId];
if (room) {
for (var id in room) {
res.push(io.sockets.adapter.nsp.connected[id]);
}
}
return res;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question