We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 625be75 commit 004eafbCopy full SHA for 004eafb
doc/api/diagnostics_channel.md
@@ -162,7 +162,7 @@ added:
162
changes:
163
- version: REPLACEME
164
pr-url: https://github.com/nodejs/node/pull/40433
165
- description: Added return value.
+ description: Added return value. Added to channels without subscribers.
166
-->
167
168
* `onMessage` {Function} The previous subscribed handler to remove
lib/diagnostics_channel.js
@@ -81,6 +81,10 @@ class Channel {
81
this.subscribe(subscription);
82
}
83
84
+ unsubscribe() {
85
+ return false;
86
+ }
87
+
88
get hasSubscribers() {
89
return false;
90
0 commit comments