ElectronIpcRenderer.sendTo method
ElectronIpcRenderer › sendTo
Unofficial
Sends a message to a window withwebContentsId via channel. Signature:
sendTo(webContentsId: number, channel: string, args?: unknown[]): voidParameters:
| 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