From ec158770f564521f61859e3984a4965b68d7aa0e Mon Sep 17 00:00:00 2001 From: brianc Date: Thu, 3 Mar 2011 22:44:31 -0600 Subject: [PATCH] client emits notify message from connection --- lib/client.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/client.js b/lib/client.js index 6efcb027..a8fa07b7 100644 --- a/lib/client.js +++ b/lib/client.js @@ -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);