Skip to content

Type Alias: ElectronIPCServiceEntrypointOptions ​

ElectronIPCServiceEntrypointOptions = object

The options of electronIPCServiceEntrypoint.

Properties ​

channel? ​

optional channel?: string

The IPC channel of the requests (ipcRenderer.invoke(channel, data, clientId)). The events pushed to the pages are sent on <channel>:event, and a page subscribes to them by sending its client id on <channel>:subscribe.

Default ​

ts
'lakutata:service'

ipcMain? ​

optional ipcMain?: IPCMain

The ipcMain to serve the requests on.

Default ​

the ipcMain of Electron's main process


middlewares? ​

optional middlewares?: MiddlewareDefinition[]

The middlewares of this adapter's actions, run after the entrypoint's global middlewares.


name? ​

optional name?: string

The adapter name, to tell apart several service adapters of one entrypoint.

Released under the MIT License.