squaremo/rabbit.js — pull request #22 by englercj (2012-05-25 16:46:11+00:00)
Title: Pass along connection error events.

Right now the only way to detect a connection error (aside from you app exploding) is by doing:

var context = rabbitjs.createContext(server.uri);
context._connection.on('error', function(err) {});

This should really be exposed to the context object:

var context = rabbitjs.createContext(server.uri);
context.on('error', function(err) {});

Thanks!