WindowClient

external class WindowClient : Client(source)

This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources.

MDN Reference

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun navigate(url: String): WindowClient?
suspend fun navigate(url: URL): WindowClient?
Link copied to clipboard
Link copied to clipboard
fun postMessage(message: Any?, transfer: ReadonlyArray<Transferable>)
fun postMessage(message: Any?, options: StructuredSerializeOptions = definedExternally)