Readonlycontroller
Current native controller, if the page is controlled.
Readonlyregistration
Latest known native registration.
ReadonlyregistrationTemplate-friendly registration snapshot.
Readonlystatus
Template-facing lifecycle status for the latest service-worker operation.
Readonlysupported
Support flag for templates and guards.
ReadonlyupdateTemplate-friendly update snapshot.
Subscribe to controller-change notifications.
Subscribe to messages from the service worker container.
Subscribe to update-state notifications.
Send a message to the current controller or an explicit worker target.
Optionaloptions:
ServiceWorkerPostOptions
Resolve when the browser reports an active ready registration.
Register the configured script or an explicit script URL.
OptionalscriptOrOptions: string
|
URL
|
RegistrationOptions
Optionaloptions:
RegistrationOptions
Send a request through a dedicated
MessageChannel.
Optionaloptions:
ServiceWorkerRequestOptions
Unregister the latest known registration.
Ask the latest known registration to check for an updated worker.
Injectable service-worker lifecycle and messaging facade.