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().
Inheritors
Properties
Functions
Link copied to clipboard
The postMessage() method of the Client interface allows a service worker to send a message to a client (a Window, Worker, or SharedWorker). The message is received in the message event on navigator.serviceWorker.
open external fun postMessage(message: JsAny?, options: StructuredSerializeOptions = definedExternally)
open external fun postMessage(message: String, options: StructuredSerializeOptions = definedExternally)