MessageChannel Class

A channel of two entangled message ports (https://html.spec.whatwg.org/multipage/web-messaging.html#message-channels): a message posted to one port is delivered to the other one.

public sealed class MessageChannel

Constructors

NameDescription
MessageChannel()https://html.spec.whatwg.org/multipage/web-messaging.html#dom-messagechannel

MessageChannel()

MessageChannel.cs

https://html.spec.whatwg.org/multipage/web-messaging.html#dom-messagechannel

public MessageChannel()

Properties

NameDescription
Port1Gets the first port of the channel, entangled with MessageChannel.Port2.
Port2Gets the second port of the channel, entangled with MessageChannel.Port1.

Gets the first port of the channel, entangled with MessageChannel.Port2.

public MessagePort Port1 { get; }

Gets the second port of the channel, entangled with MessageChannel.Port1.

public MessagePort Port2 { get; }