The Client interface of the ServiceWorker API represents the scope of a service worker client. A service worker client is either a document in a browser context or a SharedWorker, which is controlled by an active worker. A client object acts as a snapshot representation of its associated service worker client in the scope of a service worker.

Documentation Client by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Variables

read onlyframeType:FrameType

Indicates the type of browsing context of the current client. This value can be one of auxiliarytop-levelnested, or none.

read onlyid:String

Returns the universally unique identifier of the Client object.

read onlyurl:String

The URL of the current service worker client.

Methods

postMessage (message:Dynamic, ?transfer:Array<Dynamic>):Void

Throws:

null

DOMError