Skip to content

Commit

Permalink
doc: add return value for DC unsubscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-id committed Oct 12, 2021
1 parent 6d07e4d commit abbbcd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/api/diagnostics_channel.md
Expand Up @@ -267,10 +267,11 @@ added:
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/40433
description: Added to channels without subscribers.
description: Added return value. Added to channels without subscribers.
-->

* `onMessage` {Function} The previous subscribed handler to remove
* Returns: {boolean} `true` if the handler was found, `false` otherwise.

Remove a message handler previously registered to this channel with
[`channel.subscribe(onMessage)`][].
Expand Down

0 comments on commit abbbcd1

Please sign in to comment.