Skip to content

Instantly share code, notes, and snippets.

View rf's full-sized avatar

Russ Frank rf

  • Oden Technologies
  • Brooklyn, NY
View GitHub Profile
@rf
rf / gist:1813857
Created February 13, 2012 05:12 — forked from parshap/gist:1813827
irc - async example
// Get a list of rooms...
socket.on('list rooms', function(data){
client.smembers('rooms', function(err, rooms){
var remaining = rooms.length,
array = []
async.forEach(rooms, function (room, done) {
client.hgetall('room_' + room, function (e, result) {
array.push(result);
done();