client emits notify message from connection

This commit is contained in:
brianc 2011-03-03 22:44:31 -06:00
parent c0ef5296c6
commit ec158770f5

View File

@ -22,6 +22,10 @@ var Client = function(config) {
this.queryQueue = [];
this.password = config.password || defaults.password;
this.encoding = 'utf8';
var self = this;
this.connection.on('notify', function(msg) {
self.emit('notify', msg);
})
};
sys.inherits(Client, EventEmitter);