Skip to content

ElectronWebContents.on('ipc-message-sync') method

ElectronWebContents › on(‘ipc-message-sync’)

Unofficial

Registers a listener for the ipc-message-sync event.

Signature:

on(event: "ipc-message-sync", listener: (event: ElectronEvent, channel: string, ...args: unknown[]) => void): this

Parameters:

ParameterTypeDescription
event"ipc-message-sync"The event name.
listener(event: ElectronEvent, channel: string, ...args: unknown[]) => voidCalled when the ipc-message-sync event is emitted.

Returns: thisThis web contents instance.