Has anyone been able to send an IPC event from the UI app back to NX Electron's main thread? #182
-
I'm trying to find a way to send events back and forth between the UI app and main thread in NX electron, however I'm getting errors when trying to load Electron into my React frontend since it's setup as a web frontend. Has anyone been able to send a message back and forth using ipcMain? I see it being done strictly inside the electron app, however not sure if it can be done with the setup here. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I have opted to ship the default app with some security measures (which can be disabled if you wish). |
Beta Was this translation helpful? Give feedback.
I have opted to ship the default app with some security measures (which can be disabled if you wish).
Follow this article to define a context bridge (inside of the preload script) between the IPC main and the IPC renderer (there are some example functions defined as an example).