Open Collective
来源:Electron
浏览 199
扫码
分享
2021-09-05 14:36:43
sender
IpcRenderer - The IpcRenderer
instance that emitted the event originallysenderId
Integer - The webContents.id
that sent the message, you can call event.sender.sendTo(event.senderId, ...)
to reply to the message, see ipcRenderer.sendTo for more information. This only applies to messages sent from a different renderer. Messages sent directly from the main process set event.senderId
to 0
.ports
MessagePort[] - A list of MessagePorts that were transferred with this message