h3poteto / electron-mock-ipc

Mock Electron's ipcMain, and ipcRenderer
MIT License
23 stars 6 forks source link

Can it run on a browser? #758

Closed junjielyu13 closed 9 months ago

junjielyu13 commented 9 months ago

I have a question. I want to start the electron program on the backend and then start a local web service. Can this web service use this library to communicate with the electron program through IPC?

h3poteto commented 9 months ago

This is a mock library. Of course, you can use it on your web service, but this can't communicate with the backed service. What is your purpose?

junjielyu13 commented 9 months ago

I want electron to open a web server, this web can use IPC to communicate with electron. But I ended up using https for communication.

thank you for your reply.

h3poteto commented 9 months ago

It can be archived using IPC or HTTP, but this library is irrelevant. This is a mock library and is used when mocking IPC in tests.