mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
client emits notify message from connection
This commit is contained in:
parent
c0ef5296c6
commit
ec158770f5
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user