ElectronIpcRenderer.send method
ElectronIpcRenderer › send
Unofficial
Sends an asynchronous message to the main process viachannel, along with arguments.The main process handles it by listening for
channel with the ipcMain module. Arguments are serialized with the Structured Clone Algorithm, so prototype chains are not included and sending functions, promises, symbols, weak maps, or weak sets throws an exception. Signature:
send(channel: string, args?: unknown[]): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| channel | string | The IPC channel name. |
| args? | unknown[] | Arguments to send. |
Returns: void