Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface MessageChannel
import { type MessageChannel } from "https://deno.land/x/deno@v1.38.1/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: MessagePort
readonly
port2: MessagePort
variable MessageChannel
import { MessageChannel } from "https://deno.land/x/deno@v1.38.1/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; }