WindowClient
The WindowClient interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources.
Value members
Abstract methods
Concrete methods
The focused read-only property of the WindowClient interface is a Boolean that indicates whether the current client has focus.
The focused read-only property of the WindowClient interface is a Boolean that indicates whether the current client has focus.
The visibilityState read-only property of the WindowClient interface indicates the visibility of the current client. This value can be one of hidden, visible, prerender, or unloaded.
The visibilityState read-only property of the WindowClient interface indicates the visibility of the current client. This value can be one of hidden, visible, prerender, or unloaded.
Inherited methods
The id attribute must return its associated service worker client's id.
The id attribute must return its associated service worker client's id.
- Inherited from:
- Client
Allows a service worker to send a message to a client (a Window, Worker, or SharedWorker). The message is received in the "message" event on navigator.serviceWorker.
Allows a service worker to send a message to a client (a Window, Worker, or SharedWorker). The message is received in the "message" event on navigator.serviceWorker.
- Value parameters:
- transfer
A sequence of objects that are transferred with the message. The ownership of these objects is given to the destination side and they are no longer usable on the sending side.
- Inherited from:
- Client
The url attribute must return the context object's associated service worker client's serialized creation url.
The url attribute must return the context object's associated service worker client's serialized creation url.
- Inherited from:
- Client