You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Send an event to the main process asynchronously via a `channel`, you can also
55
-
send arbitrary arguments. Arguments will be serialized (json) and hence no functions or prototype chain will be included. The main process handles it by listening for the
56
-
`channel` event with `ipcMain`.
54
+
Send a message to the main process asynchronously via `channel`, you can also
55
+
send arbitrary arguments. Arguments will be serialized in JSON internally and
56
+
hence no functions or prototype chain will be included.
57
+
58
+
The main process handles it by listening for `channel` with `ipcMain` module.
Copy file name to clipboardExpand all lines: docs/api/web-contents.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -693,8 +693,11 @@ Opens the developer tools for the service worker context.
693
693
*`arg` (optional)
694
694
695
695
Send an asynchronous message to renderer process via `channel`, you can also
696
-
send arbitrary arguments. Arguments will be serialized (json) and hence no functions or prototype chain will be included. The renderer process can handle the message by
697
-
listening to the `channel` event with the `ipcRenderer` module.
696
+
send arbitrary arguments. Arguments will be serialized in JSON internally and
697
+
hence no functions or prototype chain will be included.
698
+
699
+
The renderer process can handle the message by listening to `channel` with the
700
+
`ipcRenderer` module.
698
701
699
702
An example of sending messages from the main process to the renderer process:
0 commit comments