Class: ServiceWorkerManager
#
@jupyterlite/server.ServiceWorkerManager
Implements#
Constructors#
constructor
#
new ServiceWorkerManager
(options?
)
Parameters#
Name |
Type |
---|---|
|
Defined in#
Properties#
_ready
#
Private
_ready
:PromiseDelegate
<void
>
Defined in#
_registration
#
Private
_registration
:null
|ServiceWorkerRegistration
=null
Defined in#
_registrationChanged
#
Private
_registrationChanged
:Signal
<ServiceWorkerManager
,null
|ServiceWorkerRegistration
>
Defined in#
Accessors#
enabled
#
get
enabled
():boolean
Whether the ServiceWorker is enabled or not.
Returns#
boolean
Implementation of#
IServiceWorkerManager.enabled
Defined in#
ready
#
get
ready
():Promise
<void
>
Returns#
Promise
<void
>
Implementation of#
IServiceWorkerManager.ready
Defined in#
registrationChanged
#
get
registrationChanged
():ISignal
<IServiceWorkerManager
,null
|ServiceWorkerRegistration
>
A signal emitted when the registration changes.
Returns#
ISignal
<IServiceWorkerManager
, null
| ServiceWorkerRegistration
>
Implementation of#
IServiceWorkerManager.registrationChanged
Defined in#
Methods#
_pingServiceWorker
#
Private
_pingServiceWorker
():Promise
<void
>
Returns#
Promise
<void
>
Defined in#
_setRegistration
#
Private
_setRegistration
(registration
):void
Parameters#
Name |
Type |
---|---|
|
|
Returns#
void
Defined in#
initialize
#
Private
initialize
(workerUrl
):Promise
<void
>
Parameters#
Name |
Type |
---|---|
|
|
Returns#
Promise
<void
>
Defined in#
unregisterOldServiceWorkers
#
Private
unregisterOldServiceWorkers
(scriptURL
):Promise
<void
>
Parameters#
Name |
Type |
---|---|
|
|
Returns#
Promise
<void
>