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
fun postMessage(message: ERROR CLASS: Symbol not found for JsAny??, transfer: ReadonlyArray<Transferable>)
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.
fun postMessage(message: ERROR CLASS: Symbol not found for JsAny??, options: StructuredSerializeOptions = definedExternally)