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

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

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

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.