Skip to main content

channel

function channel
Jump to headingchannel(name: string | symbol): Channel

This is the primary entry-point for anyone wanting to publish to a named channel. It produces a channel object which is optimized to reduce overhead at publish time as much as possible.

import diagnostics_channel from 'node:diagnostics_channel';

const channel = diagnostics_channel.channel('my-channel');

Parameters Jump to heading

Jump to headingname: string | symbol

The channel name

Return Type Jump to heading

The named channel object

Back to top