ServiceWorkerMain Type
⚠ Process Availability: Main ✔ | Renderer ❌ | Utility ❌ | Exported ❌
Instance members
| Instance member |
Description
|
|
An IpcMainServiceWorker instance scoped to the service worker.
|
Full Usage:
this.isDestroyed ()
Returns: bool
Modifiers: inline |
Whether the service worker has been destroyed.
|
Full Usage:
this.scope
Returns: string
|
A string representing the scope URL of the service worker.
|
Full Usage:
this.scriptURL
Returns: string
|
A string representing the script URL of the service worker.
|
Full Usage:
this.send (channel, ...args)
Parameters:
string
...args : obj[]
Modifiers: inline |
Send an asynchronous message to the service worker process via channel, along with arguments. Arguments will be serialized with the Structured Clone Algorithm, just like postMessage, so prototype chains will not be included. Sending Functions, Promises, Symbols, WeakMaps, or WeakSets will throw an exception.The service worker process can handle the message by listening to channel with the ipcRenderer module.
|
|
|
Full Usage:
this.versionId
Returns: float
|
A number representing the ID of the specific version of the service worker script in its scope.
|
fable-electron-docs-api