We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c70c3b commit d36152dCopy full SHA for d36152d
2 files changed
cjs/src/pg-notify.js
@@ -77,6 +77,10 @@ class PGPubSub {
77
this.channels[channel] = { listeners: 1 }
78
}
79
80
+ async off (channel, listener) {
81
+ return this.removeListener(channel, listener)
82
+ }
83
+
84
async removeListener (channel, listener) {
85
if (!this.channels[channel]) {
86
return
src/pg-notify.js
0 commit comments