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 onlytype:ClientType
The client's type as a string. It can be "window"
, "worker"
, or "sharedworker"
.
Methods
postMessage(message:Dynamic, ?transfer:Array<Dynamic>):Void
Sends a message to the client.
Throws:
null | DOMError |
---|