Implements
  • Service
Index
  • get registration(): ExtendedServiceWorkerRegistration | undefined

    Get service worker registration

    Returns ExtendedServiceWorkerRegistration | undefined

  • Fetches a list of URLs into the kernel's filesystem with the Background Fetch API.

    Parameters

    • id: string

      the fetch id (the directory name for the files)

    • urls: string[]

      the URLs to fetch

    • options: object

      fetch options

    Returns Promise<BackgroundFetchRegistration>

    the fetch registration

  • Supply the subsystems Service needs but that don't exist at construction time. Must be called before fetch() is used (background-fetch completion writes to the shell's cwd and reports to the terminal).

    Parameters

    • wiring: ServiceWiring

    Returns void