Client
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().
Methods
Client.postMessage()-
Sends a message to the client.
Properties
Client.idRead only-
The universally unique identifier of the client as a string.
Client.typeRead only-
The client's type as a string. It can be "
window", "worker", or "sharedworker". Client.urlRead only-
The URL of the client as a string.
Specifications
| Specification |
|---|
| Service Workers 1 # client-interface |
Browser compatibility
BCD tables only load in the browser