Skip to content

ElectronIpcMainEvent.reply method

ElectronIpcMainEvent › reply

Unofficial

Sends an IPC message to the renderer frame that sent the original message that is currently being handled. Use this method to "reply" to the sent message in order to guarantee the reply goes to the correct process and frame.

Signature:

reply(channel: string, args?: unknown[]): void

Parameters:

Parameter Type Description
channel string The IPC channel name.
args? unknown[] Arguments to send back to the renderer frame.

Returns: void