Skip to main content
channel - node__diagnostics_channel.d.ts - Node documentation
function channel

Usage in Deno

```typescript import { channel } from "node:node__diagnostics_channel.d.ts"; ```
channel(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. ```js import diagnostics_channel from 'node:diagnostics_channel'; const channel = diagnostics_channel.channel('my-channel'); ```

Parameters

name: string | symbol
The channel name

Return Type

The named channel object