Skip to content

ElectronIpcRenderer.sendTo method

ElectronIpcRenderer › sendTo

Unofficial

Sends a message to a window with webContentsId via channel.

Signature:

sendTo(webContentsId: number, channel: string, args?: unknown[]): void

Parameters:

Parameter Type Description
webContentsId number The webContents.id of the target window.
channel string The IPC channel name.
args? unknown[] Arguments to send.

Returns: void