Header menu logo fable-electron-docs-api

IpcMainServiceWorkerEvent Type

Constructors

Constructor Description

IpcMainServiceWorkerEvent(type, serviceWorker, versionId, session, returnValue, ports, reply)

Full Usage: IpcMainServiceWorkerEvent(type, serviceWorker, versionId, session, returnValue, ports, reply)

Parameters:
    type : 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
type : 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

this.ports

Full Usage: this.ports

A list of MessagePorts that were transferred with this message

this.reply

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.

this.returnValue

Full Usage: this.returnValue

Set this to the value to be returned in a synchronous message

this.serviceWorker

Full Usage: this.serviceWorker

Returns: ServiceWorkerMain

The service worker that sent this message

Returns: ServiceWorkerMain

this.session

Full Usage: this.session

The Session instance with which the event is associated.

this.type

Full Usage: this.type

Possible values include service-worker.

this.versionId

Full Usage: this.versionId

The service worker version ID.

Type something to start searching.