@drupflare/spool - v0.1.0
    Preparing search index...

    Type Alias SpoolClient

    the page's handle on the worker

    type SpoolClient = {
        hello: Hello;
        registration: ServiceWorkerRegistration;
        reportLoads(
            id: string,
            count: number,
            origins?: Record<string, number>,
        ): void;
        status(): Promise<Status>;
        track(db: Closable): () => void;
        view(path?: string): Promise<string | null>;
    }
    Index
    hello: Hello

    the version handshake; compatible is false when the worker speaks another protocol

    registration: ServiceWorkerRegistration
    • tells the worker how many cross-origin resources the page loaded, for view id, and from which origins

      Parameters

      • id: string
      • count: number
      • Optionalorigins: Record<string, number>

      Returns void

    • the id of this page's view, which the worker made when it handled the navigation; null if it made none

      Parameters

      • Optionalpath: string

      Returns Promise<string | null>