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({
308308added:
309309 - v15.1.0
310310 - v14.17.0
311+ deprecated: REPLACEME
311312-->
312313
314+ > Stability: 0 - Deprecated: Use [ ` diagnostics_channel.subscribe(name, onMessage) ` ] [ ]
315+
313316* ` onMessage ` {Function} The handler to receive channel messages
314317 * ` message ` {any} The message data
315318 * ` name ` {string|symbol} The name of the channel
@@ -351,8 +354,11 @@ changes:
351354 - v14.19.0
352355 pr-url: https://github.com/nodejs/node/pull/40433
353356 description: Added return value. Added to channels without subscribers.
357+ deprecated: REPLACEME
354358-->
355359
360+ > Stability: 0 - Deprecated: Use [ ` diagnostics_channel.unsubscribe(name, onMessage) ` ] [ ]
361+
356362* ` onMessage ` {Function} The previous subscribed handler to remove
357363* Returns: {boolean} ` true ` if the handler was found, ` false ` otherwise.
358364
@@ -389,5 +395,6 @@ channel.unsubscribe(onMessage);
389395
390396[ `'uncaughtException'` ] : process.md#event-uncaughtexception
391397[ `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
393400[ `diagnostics_channel.channel(name)` ] : #diagnostics_channelchannelname
You can’t perform that action at this time.
0 commit comments