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:

ParameterTypeDescription
webContentsIdnumberThe webContents.id of the target window.
channelstringThe IPC channel name.
args?unknown[]Arguments to send.

Returns: void