ServiceWorkers Type
⚠ Process Availability: Main ✔ | Renderer ❌ | Utility ❌ | Exported ❌
Instance members
| Instance member |
Description
|
|
A ServiceWorkerInfo object where the keys are the service worker version ID and the values are the information about that service worker.
|
Full Usage:
this.getInfoFromVersionID versionId
Parameters:
float
Returns: ServiceWorkerInfo
Modifiers: inline |
Information about this service workerIf the service worker does not exist or is not running this method will throw an exception.
|
Full Usage:
this.getWorkerFromVersionID versionId
Parameters:
float
Returns: Option<ServiceWorkerMain>
Modifiers: inline |
Instance of the service worker associated with the given version ID. If there's no associated version, or its running status has changed to 'stopped', this will return undefined.
|
Full Usage:
this.offConsoleMessage handler
Parameters:
IOnConsoleMessage -> unit
Modifiers: inline |
Emitted when a service worker logs something to the console.
|
Full Usage:
this.offConsoleMessage handler
Parameters:
Event -> MessageDetails -> unit
Modifiers: inline |
Emitted when a service worker logs something to the console.
|
Full Usage:
this.offRegistrationCompleted handler
Parameters:
IOnRegistrationCompleted -> unit
Modifiers: inline |
Emitted when a service worker has been registered. Can occur after a call to navigator.serviceWorker.register('/sw.js') successfully resolves or when a Chrome extension is loaded.
|
|
|
Full Usage:
this.offRunningStatusChanged handler
Parameters:
Details -> unit
Modifiers: inline |
Emitted when a service worker's running status has changed.
|
Full Usage:
this.onConsoleMessage handler
Parameters:
IOnConsoleMessage -> unit
Modifiers: inline |
Emitted when a service worker logs something to the console.
|
Full Usage:
this.onConsoleMessage handler
Parameters:
Event -> MessageDetails -> unit
Modifiers: inline |
Emitted when a service worker logs something to the console.
|
Full Usage:
this.onRegistrationCompleted handler
Parameters:
IOnRegistrationCompleted -> unit
Modifiers: inline |
Emitted when a service worker has been registered. Can occur after a call to navigator.serviceWorker.register('/sw.js') successfully resolves or when a Chrome extension is loaded.
|
|
|
Full Usage:
this.onRunningStatusChanged handler
Parameters:
Details -> unit
Modifiers: inline |
Emitted when a service worker's running status has changed.
|
Full Usage:
this.onceConsoleMessage handler
Parameters:
IOnConsoleMessage -> unit
Modifiers: inline |
Emitted when a service worker logs something to the console.
|
Full Usage:
this.onceConsoleMessage handler
Parameters:
Event -> MessageDetails -> unit
Modifiers: inline |
Emitted when a service worker logs something to the console.
|
Full Usage:
this.onceRegistrationCompleted handler
Parameters:
IOnRegistrationCompleted -> unit
Modifiers: inline |
Emitted when a service worker has been registered. Can occur after a call to navigator.serviceWorker.register('/sw.js') successfully resolves or when a Chrome extension is loaded.
|
|
|
Full Usage:
this.onceRunningStatusChanged handler
Parameters:
Details -> unit
Modifiers: inline |
Emitted when a service worker's running status has changed.
|
Full Usage:
this.startWorkerForScope scope
Parameters:
string
Returns: Promise<ServiceWorkerMain>
Modifiers: inline |
Resolves with the service worker when it's started.Starts the service worker or does nothing if already running.
|
fable-electron-docs-api