Client

open class Client(source)

The Client interface represents an executable context such as a Worker, or a SharedWorker.

MDN Reference

Inheritors

Properties

Link copied to clipboard

The frameType read-only property of the Client interface indicates the type of browsing context of the current Client.

Link copied to clipboard
val id: String

The id read-only property of the Client interface returns the universally unique identifier of the Client object.

Link copied to clipboard

The type read-only property of the Client interface indicates the type of client the service worker is controlling.

Link copied to clipboard
val url: String

The url read-only property of the Client interface returns the URL of the current service worker client.

Functions

Link copied to clipboard
fun postMessage(message: JsAny?, transfer: ReadonlyArray<Transferable>)

The postMessage() method of the (a Window, Worker, or SharedWorker).

fun postMessage(message: JsAny?, options: StructuredSerializeOptions = definedExternally)