Client - Web APIs | MDN

Instance methods

Client.postMessage()

Sends a message to the client.

Instance properties

Client.frameType Read only

The client's frame type as a string. It can be "auxiliary", "top-level", "nested", or "none".

Client.id Read only

The universally unique identifier of the client as a string.

Client.type Read only

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

Client.url Read only

The URL of the client as a string.

Specifications

Specification
Service Workers Nightly
# client-interface

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.