ElectronIpcRenderer.sendToHost method
ElectronIpcRenderer › sendToHost
Unofficial
Likesend, but the event is sent to the <webview> element in the host page instead of the main process. Signature:
sendToHost(channel: string, args?: unknown[]): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| channel | string | The IPC channel name. |
| args? | unknown[] | Arguments to send. |
Returns: void