web api interface
Client
Available in workers
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().
Instance methods
postMessage()- : Sends a message to the client.
Instance properties
frameTypeRead only- : The client’s frame type as a string. It can be
"auxiliary","top-level","nested", or"none".
- : The client’s frame type as a string. It can be
idRead only- : The universally unique identifier of the client as a string.
typeRead only- : The client’s type as a string. It can be
"window","worker", or"sharedworker".
- : The client’s type as a string. It can be
urlRead only- : The URL of the client as a string.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.