ServiceWorker
ExperimentalDependencies: Target
No symbols match your filter.
Commands
ServiceWorker.deliverPushMessage
Parameters
| Name | Type | Description |
|---|---|---|
origin
|
string |
|
registrationId
|
RegistrationID |
|
data
|
string |
ServiceWorker.disable
ServiceWorker.dispatchSyncEvent
Parameters
| Name | Type | Description |
|---|---|---|
origin
|
string |
|
registrationId
|
RegistrationID |
|
tag
|
string |
|
lastChance
|
boolean |
ServiceWorker.dispatchPeriodicSyncEvent
Parameters
| Name | Type | Description |
|---|---|---|
origin
|
string |
|
registrationId
|
RegistrationID |
|
tag
|
string |
ServiceWorker.enable
ServiceWorker.setForceUpdateOnPageLoad
Parameters
| Name | Type | Description |
|---|---|---|
forceUpdateOnPageLoad
|
boolean |
ServiceWorker.skipWaiting
Parameters
| Name | Type | Description |
|---|---|---|
scopeURL
|
string |
ServiceWorker.startWorker
Parameters
| Name | Type | Description |
|---|---|---|
scopeURL
|
string |
ServiceWorker.stopAllWorkers
ServiceWorker.stopWorker
Parameters
| Name | Type | Description |
|---|---|---|
versionId
|
string |
ServiceWorker.unregister
Parameters
| Name | Type | Description |
|---|---|---|
scopeURL
|
string |
ServiceWorker.updateRegistration
Parameters
| Name | Type | Description |
|---|---|---|
scopeURL
|
string |
Events
ServiceWorker.workerErrorReported
Parameters
| Name | Type | Description |
|---|---|---|
errorMessage
|
ServiceWorkerErrorMessage |
ServiceWorker.workerRegistrationUpdated
Parameters
| Name | Type | Description |
|---|---|---|
registrations
|
array<ServiceWorkerRegistration> |
ServiceWorker.workerVersionUpdated
Parameters
| Name | Type | Description |
|---|---|---|
versions
|
array<ServiceWorkerVersion> |
Types
RegistrationID
(string)
ServiceWorkerRegistration
(object)
ServiceWorker registration.
Properties
| Name | Type | Description |
|---|---|---|
registrationId
|
RegistrationID |
|
scopeURL
|
string |
|
isDeleted
|
boolean |
ServiceWorkerVersionRunningStatus
(string)
Allowed Values
stoppedstartingrunningstopping
ServiceWorkerVersionStatus
(string)
Allowed Values
newinstallinginstalledactivatingactivatedredundant
ServiceWorkerVersion
(object)
ServiceWorker version.
Properties
| Name | Type | Description |
|---|---|---|
versionId
|
string |
|
registrationId
|
RegistrationID |
|
scriptURL
|
string |
|
runningStatus
|
ServiceWorkerVersionRunningStatus |
|
status
|
ServiceWorkerVersionStatus |
|
scriptLastModified
(optional) |
number |
The Last-Modified header value of the main script. |
scriptResponseTime
(optional) |
number |
The time at which the response headers of the main script were received from the server. For cached script it is the last time the cache entry was validated. |
controlledClients
(optional) |
array<Target.TargetID> |
|
targetId
(optional) |
Target.TargetID |
|
routerRules
(optional) |
string |
ServiceWorkerErrorMessage
(object)
ServiceWorker error message.
Properties
| Name | Type | Description |
|---|---|---|
errorMessage
|
string |
|
registrationId
|
RegistrationID |
|
versionId
|
string |
|
sourceURL
|
string |
|
lineNumber
|
integer |
|
columnNumber
|
integer |