We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0670e7 commit 07bbb07Copy full SHA for 07bbb07
doc/api/diagnostics_channel.md
@@ -267,7 +267,7 @@ added:
267
changes:
268
- version: REPLACEME
269
pr-url: https://github.com/nodejs/node/pull/40433
270
- description: Added return value.
+ description: Added return value. Added to channels without subscribers.
271
-->
272
273
* `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