IpcMainServiceWorkerEvent Type
Constructors
| Constructor |
Description
|
Full Usage:
IpcMainServiceWorkerEvent(type, serviceWorker, versionId, session, returnValue, ports, reply)
Parameters:
Type
-
Possible values include service-worker.
serviceWorker : ServiceWorkerMain
-
The service worker that sent this message
versionId : float
-
The service worker version ID.
session : Session
-
The Session instance with which the event is associated.
returnValue : obj
-
Set this to the value to be returned in a synchronous message
ports : MessagePortMain[]
-
A list of MessagePorts that were transferred with this message
reply : string * obj[] -> unit
-
A function that will send an IPC message to the renderer frame that sent the original message that you
are currently handling. You should use this method to "reply" to the sent message in order to guarantee the
reply will go to the correct process and frame.
Returns: IpcMainServiceWorkerEvent
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.ports
|
A list of MessagePorts that were transferred with this message |
Full Usage:
this.reply
|
A function that will send an IPC message to the renderer frame that sent the original message that you are currently handling. You should use this method to "reply" to the sent message in order to guarantee the reply will go to the correct process and frame. |
Full Usage:
this.returnValue
|
Set this to the value to be returned in a synchronous message |
|
The service worker that sent this message
|
Full Usage:
this.session
|
The Session instance with which the event is associated. |
Full Usage:
this.type
|
Possible values include service-worker. |
Full Usage:
this.versionId
|
The service worker version ID. |
fable-electron-docs-api