update docs to show usage of ipcRenderer.sendTo

This commit is contained in:
73mp74710n 2017-10-18 02:35:19 +01:00 committed by GitHub
parent 9193720789
commit c647b0c65e

View file

@ -74,6 +74,14 @@ and replies by setting `event.returnValue`.
**Note:** Sending a synchronous message will block the whole renderer process, **Note:** Sending a synchronous message will block the whole renderer process,
unless you know what you are doing you should never use it. unless you know what you are doing you should never use it.
### `ipcRenderer.sendTo(windowid, channel, [, arg1][, arg2][, ...])`
* `windowid` Number
* `channel` String
* `...args` any[]
Sends a message to a window with `windowid` via `channel`
### `ipcRenderer.sendToHost(channel[, arg1][, arg2][, ...])` ### `ipcRenderer.sendToHost(channel[, arg1][, arg2][, ...])`
* `channel` String * `channel` String