Interface Clients

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

    MDN Reference

    interface Clients {
        claim(): Promise<void>;
        get(id: string): Promise<Client>;
        matchAll<T>(options?: T): Promise<readonly (T["type"] extends "window"
            ? WindowClient
            : Client)[]>;
        openWindow(url: string | URL): Promise<WindowClient>;
    }

    Methods