Better solution than IPC for communicating between webview and preload?


#1

Hi guys! I have a problem with webview. I want to pass Objects, Functions through IPC, but as I readed, it is not possible. And there is a question: is there any better solution than IPC for sending more complicated objects? I’m developing web browser in Electron, and I’m making extensions API. Extensions written by users are loading into separate webview, and they can access API from preload script of the webview such as wexond.tabs.getTabs(), but unfortunately IPC can’t pass React Objects or Functions to preload script. I tried also iframe, but this isn’t good option, because it’s in one process and this slows browser.


#2

Warto wiedzieć