Diagnostics Channel

Node.js diagnostics_channel module — diagnostic publish/subscribe messaging.

Module: node:diagnostics_channel Support: Experimental Since: 1.1.0 Docs: Node.js Docs

4 members: 3 supported, 1 undocumented

Static Methods

🟢 channel(name)
A named channel for publishing and subscribing to diagnostic messages.
⚪ hasSubscribers(name)
Whether this channel has active subscribers. @compat elide Full
🟢 subscribe(name, onMessage)
Subscribe a handler to this channel.
🟢 unsubscribe(name, onMessage)
Unsubscribe a handler from this channel.

Interface Channel

A named channel for publishing and subscribing to diagnostic messages.

Since: 1.1.0 Docs: Node.js Docs

5 members: 4 supported, 1 undocumented

Methods

🟢 publish(message)
Publish a message to all subscribers.
🟢 subscribe(onMessage)
Subscribe a handler to this channel.
🟢 unsubscribe(onMessage)
Unsubscribe a handler from this channel.

Properties

🟢 name
A named channel for publishing and subscribing to diagnostic messages.
⚪ hasSubscribers
Whether this channel has active subscribers. @compat elide Full

---