MCPcopy Index your code
hub / github.com/brianc/node-postgres / notify

Function notify

packages/pg-native/test/notify.js:4–9  ·  view source on GitHub ↗
(channel, payload)

Source from the content-addressed store, hash-verified

2const ok = require('okay')
3
4const notify = function (channel, payload) {
5 const client = new Client()
6 client.connectSync()
7 client.querySync('NOTIFY ' + channel + ", '" + payload + "'")
8 client.end()
9}
10
11describe('simple LISTEN/NOTIFY', function () {
12 before(function (done) {

Callers 1

notify.jsFile · 0.85

Calls 1

endMethod · 0.95

Tested by

no test coverage detected