Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class Channel
import { Channel } from "https://deno.land/std@0.177.0/node/diagnostics_channel.ts";

Constructors

new
Channel(name: string)

Properties

_subscribers: Subscriber[]
readonly
hasSubscribers
name: string

Methods

publish(message: unknown)
subscribe(subscription: Subscriber)
unsubscribe(subscription: Subscriber)