Skip to content

ElectronIpcMain.handleOnce method

ElectronIpcMain › handleOnce

Unofficial

Handles a single invokeable IPC message, then removes the listener. See ipcMain.handle(channel, listener).

Signature:

handleOnce(channel: string, listener: (event: ElectronIpcMainInvokeEvent, ...args: unknown[]) => unknown): void

Parameters:

Parameter Type Description
channel string The IPC channel name.
listener (event: ElectronIpcMainInvokeEvent, ...args: unknown[]) => unknown Callback invoked to handle the message.

Returns: void