Client

Client

package js-html

extended by WindowClient

Available on js

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 only frameType:FrameType

Indicates the type of browsing context of the current client. This value can be one of auxiliary, top-level, nested, or none.

read only id:String

Returns the universally unique identifier of the Client object.

read only url:String

The URL of the current service worker client.

Methods

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

Throws:

null DOMError

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/js/html/Client.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部