Client

package js.html

extended by WindowClient

Available on js

The Client interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific WindowClient. You can get Client/WindowClient objects from methods such as Clients.matchAll() and Clients.get().

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

See also:

Variables

read onlyframeType:FrameType

read onlyid:String

The universally unique identifier of the client as a string.

read onlytype:ClientType

The client's type as a string. It can be "window", "worker", or "sharedworker".

read onlyurl:String

The URL of the client as a string.

Methods

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

Sends a message to the client.

Throws:

null

DOMError

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