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 MessageChannelConstructors
| Name | Description |
|---|---|
| MessageChannel() | https://html.spec.whatwg.org/multipage/web-messaging.html#dom-messagechannel |
MessageChannel()
MessageChannel.cshttps://html.spec.whatwg.org/multipage/web-messaging.html#dom-messagechannel
public MessageChannel()Properties
| Name | Description |
|---|---|
| Port1 | Gets the first port of the channel, entangled with MessageChannel.Port2. |
| Port2 | Gets the second port of the channel, entangled with MessageChannel.Port1. |
Port1
MessageChannel.csGets the first port of the channel, entangled with MessageChannel.Port2.
public MessagePort Port1 { get; }Port2
MessageChannel.csGets the second port of the channel, entangled with MessageChannel.Port1.
public MessagePort Port2 { get; }