We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to implement pg NOTIFY , LISTEN and I saw this example.
NOTIFY
LISTEN
var pg = require ('pg'), pgConnectionString = "postgres://user:pass@localhost/db"; var client = new pg.Client(pgConnectionString); client.connect(); client.query('LISTEN "article_watcher"'); client.on('notification', function(data) { console.log(data.payload);});
Is this possible using this package?
I tried doing
const pg = new PgAsync(uri) // create schema, trigger functions code pg.connect((client) => { client.on('notification', (msg) => { console.log(JSON.parse(msg.payload)) }) })
But it's just giving out errors.
The text was updated successfully, but these errors were encountered:
I just utilized another package for this specific feature.
Sorry, something went wrong.
Sorry @uLan08, quite late, which one? :-)
It's this one https://github.com/voxpelli/node-pg-pubsub
No branches or pull requests
I am trying to implement pg
NOTIFY
,LISTEN
and I saw this example.Is this possible using this package?
I tried doing
But it's just giving out errors.
The text was updated successfully, but these errors were encountered: