[node.js] Socket.IO - how do I get a list of connected sockets/clients?

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] })