Skip to content

ElectronIpcRenderer.sendToHost method

ElectronIpcRenderer › sendToHost

Unofficial

Like send, but the event is sent to the <webview> element in the host page instead of the main process.

Signature:

sendToHost(channel: string, args?: unknown[]): void

Parameters:

Parameter Type Description
channel string The IPC channel name.
args? unknown[] Arguments to send.

Returns: void