Clients

sealed external class Clients(source)

Provides access to Client objects. Access it via self.clients within a service worker.

MDN Reference

Functions

Link copied to clipboard
suspend fun claim()
Link copied to clipboard
Link copied to clipboard
suspend fun get(id: String): Client?
Link copied to clipboard
Link copied to clipboard
suspend fun <T : ClientQueryOptions> matchAll(options: T = definedExternally): ReadonlyArray<Client>
Link copied to clipboard
fun <T : ClientQueryOptions> matchAllAsync(options: T = definedExternally): Promise<ReadonlyArray<Client>>
Link copied to clipboard
suspend fun openWindow(url: String): WindowClient?
suspend fun openWindow(url: URL): WindowClient?