File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -308,8 +308,11 @@ channel.publish({
308
308
added:
309
309
- v15.1.0
310
310
- v14.17.0
311
+ deprecated: REPLACEME
311
312
-->
312
313
314
+ > Stability: 0 - Deprecated: Use [ ` diagnostics_channel.subscribe(name, onMessage) ` ] [ ]
315
+
313
316
* ` onMessage ` {Function} The handler to receive channel messages
314
317
* ` message ` {any} The message data
315
318
* ` name ` {string|symbol} The name of the channel
@@ -351,8 +354,11 @@ changes:
351
354
- v14.19.0
352
355
pr-url: https://github.com/nodejs/node/pull/40433
353
356
description: Added return value. Added to channels without subscribers.
357
+ deprecated: REPLACEME
354
358
-->
355
359
360
+ > Stability: 0 - Deprecated: Use [ ` diagnostics_channel.unsubscribe(name, onMessage) ` ] [ ]
361
+
356
362
* ` onMessage ` {Function} The previous subscribed handler to remove
357
363
* Returns: {boolean} ` true ` if the handler was found, ` false ` otherwise.
358
364
@@ -389,5 +395,6 @@ channel.unsubscribe(onMessage);
389
395
390
396
[ `'uncaughtException'` ] : process.md#event-uncaughtexception
391
397
[ `channel.subscribe(onMessage)` ] : #channelsubscribeonmessage
392
- [ `diagnostics_channel.subscribe(name, onMessage)` ] : #diagnostics_channelunsubscribename_onmessage
398
+ [ `diagnostics_channel.subscribe(name, onMessage)` ] : #diagnostics_channelsubscribename-onmessage
399
+ [ `diagnostics_channel.unsubscribe(name, onMessage)` ] : #diagnostics_channelunsubscribename-onmessage
393
400
[ `diagnostics_channel.channel(name)` ] : #diagnostics_channelchannelname
You can’t perform that action at this time.
0 commit comments