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.

interface MessageChannel {
readonly port1: MessagePort;
readonly port2: MessagePort;
}
var MessageChannel: {
readonly prototype: MessageChannel;
new (): MessageChannel;
}
;

§Properties

§
readonly port1: MessagePort
[src]
§
readonly port2: MessagePort
[src]