diff options
Diffstat (limited to 'doc/api/diagnostics_channel.md')
-rw-r--r-- | doc/api/diagnostics_channel.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/api/diagnostics_channel.md b/doc/api/diagnostics_channel.md index 16b47db3bf6..90a3b1fb6ba 100644 --- a/doc/api/diagnostics_channel.md +++ b/doc/api/diagnostics_channel.md @@ -156,7 +156,17 @@ channel.subscribe((message, name) => { #### `channel.unsubscribe(onMessage)` +<!-- YAML +added: + - v14.17.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/40433 + description: Added return value. +--> + * `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)`][]. |