The Client interface represents an executable context such as
web.workers.Worker
, or a web.workers.SharedWorker
. web.Window
are represented by the more-specific web.service-workers.WindowClient
.
can get Client/WindowClient objects from methods such as Clients.matchAll()
Clients.get()
.
The Client interface represents an executable context such as `web.workers.Worker`, or a `web.workers.SharedWorker`. `web.Window` are represented by the more-specific `web.service-workers.WindowClient`. can get Client/WindowClient objects from methods such as `Clients.matchAll()` `Clients.get()`.
(frame-type this)
Property.
The frameType read-only property of the web.service-workers.Client
indicates the type of browsing context of the current web.service-workers.Client
.
value can be one of auxiliary, top-level, nested, or none.
var myFrameType = Client.frameType;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Client/frameType
Property. The frameType read-only property of the `web.service-workers.Client` indicates the type of browsing context of the current `web.service-workers.Client`. value can be one of auxiliary, top-level, nested, or none. `var myFrameType = Client.frameType;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Client/frameType`
(id this)
Property.
The id read-only property of the web.service-workers.Client
returns the universally unique identifier of the web.service-workers.Client
var clientId = Client.id;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Client/id
Property. The id read-only property of the `web.service-workers.Client` returns the universally unique identifier of the `web.service-workers.Client` `var clientId = Client.id;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Client/id`
(post-message this & args)
Method.
The postMessage() method of web.service-workers.Client
allows
service worker to send a message to a client (a web.Window
,
or web.workers.SharedWorker
). The message is received in the
event on navigator.serviceWorker
.
Client.postMessage(message[, transfer]);
See also: https://developer.mozilla.org/en-US/docs/Web/API/Client/postMessage
Method. The postMessage() method of `web.service-workers.Client` allows service worker to send a message to a client (a `web.Window`, or `web.workers.SharedWorker`). The message is received in the event on `navigator.serviceWorker`. `Client.postMessage(message[, transfer]);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Client/postMessage`
(set-frame-type! this val)
Property.
The frameType read-only property of the web.service-workers.Client
indicates the type of browsing context of the current web.service-workers.Client
.
value can be one of auxiliary, top-level, nested, or none.
var myFrameType = Client.frameType;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Client/frameType
Property. The frameType read-only property of the `web.service-workers.Client` indicates the type of browsing context of the current `web.service-workers.Client`. value can be one of auxiliary, top-level, nested, or none. `var myFrameType = Client.frameType;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Client/frameType`
(set-id! this val)
Property.
The id read-only property of the web.service-workers.Client
returns the universally unique identifier of the web.service-workers.Client
var clientId = Client.id;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Client/id
Property. The id read-only property of the `web.service-workers.Client` returns the universally unique identifier of the `web.service-workers.Client` `var clientId = Client.id;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Client/id`
(set-type! this val)
Property.
The type read-only property of the web.service-workers.Client
indicates the type of client the service worker is controlling.
var myClientType = Client.type;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Client/type
Property. The type read-only property of the `web.service-workers.Client` indicates the type of client the service worker is controlling. `var myClientType = Client.type;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Client/type`
(set-url! this val)
Property.
The url read-only property of the web.service-workers.Client
returns the URL of the current service worker client.
var clientUrl = Client.url;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Client/url
Property. The url read-only property of the `web.service-workers.Client` returns the URL of the current service worker client. `var clientUrl = Client.url;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Client/url`
(type this)
Property.
The type read-only property of the web.service-workers.Client
indicates the type of client the service worker is controlling.
var myClientType = Client.type;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Client/type
Property. The type read-only property of the `web.service-workers.Client` indicates the type of client the service worker is controlling. `var myClientType = Client.type;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Client/type`
(url this)
Property.
The url read-only property of the web.service-workers.Client
returns the URL of the current service worker client.
var clientUrl = Client.url;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Client/url
Property. The url read-only property of the `web.service-workers.Client` returns the URL of the current service worker client. `var clientUrl = Client.url;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Client/url`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close