ServiceWorkerStateis associated with its
ExtendableMessageEventinterface of the
ServiceWorker APIrepresents the event object of a
messageevent fired on a service worker (when a channel message is received on the
ServiceWorkerGlobalScopefrom another context) — extends the lifetime of such events.
scoperead-only property of the
ServiceWorkerRegistrationinterface returns a unique identifier for a service worker registration. The service worker must be on the same origin as the document that registers the
unregistermethod of the
ServiceWorkerRegistrationinterface unregisters the service worker registration and returns a
Promise. The promise will resolve to
falseif no registration was found, otherwise it resolves to
trueirrespective of whether unregistration happened or not (it may not unregister if someone else just called
ServiceWorkerContainer.registerwith the same scope.) The service worker will finish any ongoing operations before it is unregistered.