postwait/node-amqp — Issue #64: connectionCloseOK, queueUnbindOK, basicCancelOK missing
Author: dathan
Created: 2012-01-27 19:10:14+00:00
State: open

Also added the ability to close a connection via

Connection.prototype.closeConnection = function () {
//
// 0 is the control channel
//
this._sendMethod(0, methods.connectionClose, {'replyText': 'Goodbye from node',
'replyCode': 200,
'classId': 0,
'methodId': 0});
//this.end();
};

then on _onMethod

case methods.connectionCloseOk:
this.end();
this._onMethod(0, methods.connectionClose, args);
break;

I end the connection. I don't know how to do the social commit or things that make github great. I can push these to you if you like.