ElectronIpcMain.handleOnce method
ElectronIpcMain › handleOnce
Unofficial
Handles a singleinvokeable IPC message, then removes the listener. See ipcMain.handle(channel, listener). Signature:
handleOnce(channel: string, listener: (event: ElectronIpcMainInvokeEvent, ...args: unknown[]) => unknown): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| channel | string | The IPC channel name. |
| listener | (event: ElectronIpcMainInvokeEvent, ...args: unknown[]) => unknown | Callback invoked to handle the message. |
Returns: void