@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="MessageChannel")
public class MessageChannel
extends JsObject
| Constructor and Description |
|---|
MessageChannel()
The MessageChannel() constructor of the MessageChannel interface returns a new MessageChannel object with two new MessagePort objects.
|
| Modifier and Type | Method and Description |
|---|---|
MessagePort |
port1()
The port1 read-only property of the MessageChannel interface returns the first port of the message channel — the port attached to the context that originated the channel.
|
MessagePort |
port2()
The port2 read-only property of the MessageChannel interface returns the second port of the message channel — the port attached to the context at the other end of the channel, which the message is initially sent to.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic MessageChannel()
@JsProperty(name="port1") @Nonnull public MessagePort port1()
@JsProperty(name="port2") @Nonnull public MessagePort port2()