mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
Add a C++ API for diagnostics channels that allows native code to check for subscribers and publish messages without unnecessary JS boundary crossings. Uses a shared AliasedUint32Array buffer between C++ and JS to track subscriber counts per channel, enabling a fast inline check (HasSubscribers) that reads the buffer directly. PR-URL: https://github.com/nodejs/node/pull/61869 Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>