SyntaxFix
Write A Post
Hire A Developer
Questions
on socket.io 1.3 i've accomplished this in 2 lines
var usersSocketIds = Object.keys(chat.adapter.rooms['room name']); var usersAttending = _.map(usersSocketIds, function(socketClientId){ return chat.connected[socketClientId] })