MessageChannel

interface

interface MessageChannel

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.

variable

var MessageChannel: { … }

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.

Constructors

constructor

new MessageChannel(): MessageChannel

Properties

port1

readonly port1: MessagePort

port2

readonly port2: MessagePort

prototype

readonly prototype: MessageChannel