| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/en-US/docs/Web/API/Client | [Back] [Original] |
Get to know MDN better
This feature is well established and works across many devices and browser versions. Its been available across browsers since April 2018.
Note: This feature is only available in Service 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().
Client.postMessage()Sends a message to the client.
Client.frameType Read onlyThe client's frame type as a string. It can be "auxiliary", "top-level", "nested", or "none".
Client.id Read onlyThe universally unique identifier of the client as a string.
Client.type Read onlyThe client's type as a string. It can be "window", "worker", or "sharedworker".
Client.url Read onlyThe URL of the client as a string.
| Specification |
|---|
| Service Workers Nightly # client-interface |
This page was last modified on May 13, 2024 by MDN contributors.
ClientYour blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |