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

x/deno/ext/web/lib.deno_web.d.ts>MessagePort

A modern runtime for JavaScript and TypeScript.
Latest
variable MessagePort
import { MessagePort } from "https://deno.land/x/deno@v2.0.4/ext/web/lib.deno_web.d.ts";

The MessagePort interface of the Channel Messaging API represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other.

type

{ readonly prototype: MessagePort; new (): never; }