Skip to main content

Function: registerIpcHandle()

function registerIpcHandle(
channel: GenericInvokeChannel,
handler: IpcCallback
): void;

Defined in: main/ipc/ipcRegistry.ts:47

Registers an IPC handler ensuring the previous handler is safely removed first.

Parameters​

channel​

GenericInvokeChannel

handler​

IpcCallback

Returns​

void

Throws​

Re-throws registration errors for new ipcMain instances.