@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Client")
public class Client
extends JsObject
implements ExtendableMessageEventSource
| Modifier | Constructor and Description |
|---|---|
protected |
Client() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
frameType()
The frameType read-only property of the Client interface indicates the type of browsing context of the current Client.
|
java.lang.String |
id()
The id read-only property of the Client interface returns the universally unique identifier of the Client object.
|
void |
postMessage(java.lang.Object message)
The postMessage() method of the Client interface allows a service worker to send a message to a client (a Window, Worker, or SharedWorker).
|
void |
postMessage(java.lang.Object message,
JsArray<Transferable> transfer)
The postMessage() method of the Client interface allows a service worker to send a message to a client (a Window, Worker, or SharedWorker).
|
void |
postMessage(java.lang.Object message,
StructuredSerializeOptions options)
The postMessage() method of the Client interface allows a service worker to send a message to a client (a Window, Worker, or SharedWorker).
|
void |
postMessage(java.lang.Object message,
Transferable... transfer)
The postMessage() method of the Client interface allows a service worker to send a message to a client (a Window, Worker, or SharedWorker).
|
java.lang.String |
type()
The type read-only property of the Client interface indicates the type of client the service worker is controlling.
|
java.lang.String |
url()
The url read-only property of the Client interface returns the URL of the current service worker client.
|
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_, values@JsProperty(name="frameType") @Nonnull @FrameType public java.lang.String frameType()
@JsProperty(name="id") @Nonnull public java.lang.String id()
@JsProperty(name="type") @Nonnull @ClientType public java.lang.String type()
@JsProperty(name="url") @Nonnull public java.lang.String url()
public void postMessage(@Nullable
java.lang.Object message,
@Nonnull
JsArray<Transferable> transfer)
@JsOverlay
public final void postMessage(@Nullable
java.lang.Object message,
@Nonnull
Transferable... transfer)
public void postMessage(@Nullable
java.lang.Object message,
@Nonnull
StructuredSerializeOptions options)
public void postMessage(@Nullable
java.lang.Object message)