import { type MessageChannel } from "https://deno.land/x/deno@v1.41.0/ext/web/lib.deno_web.d.ts";
The MessageChannel interface of the Channel Messaging API allows us to create a new message channel and send data through it via its two MessagePort properties.
Properties
readonly
port1: MessagePortreadonly
port2: MessagePortimport { MessageChannel } from "https://deno.land/x/deno@v1.41.0/ext/web/lib.deno_web.d.ts";
The MessageChannel interface of the Channel Messaging API allows us to create a new message channel and send data through it via its two MessagePort properties.
type
{ readonly prototype: MessageChannel; new (): MessageChannel; }