@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="ExtendableMessageEvent")
public class ExtendableMessageEvent
extends ExtendableEvent
AT_TARGET, BUBBLING_PHASE, cancelBubble, CAPTURING_PHASE, NONE, returnValue| Constructor and Description |
|---|
ExtendableMessageEvent(java.lang.String type)
The ExtendableMessageEvent() constructor creates a new ExtendableMessageEvent object instance.
|
ExtendableMessageEvent(java.lang.String type,
ExtendableMessageEventInit eventInitDict)
The ExtendableMessageEvent() constructor creates a new ExtendableMessageEvent object instance.
|
| Modifier and Type | Method and Description |
|---|---|
jsinterop.base.Any |
data()
The data read-only property of the ExtendableMessageEvent interface returns the event's data.
|
java.lang.String |
lastEventId()
The lastEventID read-only property of the ExtendableMessageEvent interface represents, in server-sent events, the last event ID of the event source.
|
java.lang.String |
origin()
The origin read-only property of the ExtendableMessageEvent interface returns the origin of the Client that sent the message.
|
JsArray<MessagePort> |
ports()
The ports read-only property of the ExtendableMessageEvent interface returns the array containing the MessagePort objects representing the ports of the associated message channel (the channel the message is being sent through.)
|
ExtendableMessageEventSource |
source()
The source read-only property of the ExtendableMessageEvent interface returns a reference to the Client object from which the message was sent.
|
waitUntilbubbles, cancelable, composed, composedPath, currentTarget, defaultPrevented, eventPhase, initEvent, initEvent, initEvent, isTrusted, preventDefault, srcElement, stopImmediatePropagation, stopPropagation, target, timeStamp, typeassign, 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 ExtendableMessageEvent(@Nonnull
java.lang.String type,
@Nonnull
ExtendableMessageEventInit eventInitDict)
public ExtendableMessageEvent(@Nonnull
java.lang.String type)
@JsProperty(name="data") @Nullable public jsinterop.base.Any data()
@JsProperty(name="lastEventId") @Nonnull public java.lang.String lastEventId()
@JsProperty(name="origin") @Nonnull public java.lang.String origin()
@JsProperty(name="ports") @Nonnull public JsArray<MessagePort> ports()
@JsProperty(name="source") @Nullable public ExtendableMessageEventSource source()