Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/types/index.ts>dom.MessageChannel

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.MessageChannel
import { type dom } from "https://deno.land/x/evt@v2.5.6/lib/types/index.ts";
const { MessageChannel } = dom;

This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties.

Properties

readonly
port1: MessagePort

Returns the first MessagePort object.

readonly
port2: MessagePort

Returns the second MessagePort object.