ServiceWorkerContainer interface of the ServiceWorker API provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.
Fired whenever a
message event occurs — when incoming messages are received to the
ServiceWorkerContainer object (e.g. via a
Provides a way of delaying code execution until a service worker is active. It returns a
Promise that will never reject, and which waits indefinitely until the
ServiceWorkerRegistration associated with the current page has an
ServiceWorkerRegistration.active worker. Once that condition is met, it resolves with the