Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No longer necessary? (superseded by official handle() method?) #47

Open
Eli-Black-Work opened this issue Dec 12, 2022 · 4 comments
Open

Comments

@Eli-Black-Work
Copy link

Just an FYI that nowadays, electron has a built-in method to do what this package does: ipcMain::handle()

See https://www.electronjs.org/docs/latest/api/ipc-main#ipcmainhandlechannel-listener for details 🙂

@linonetwo
Copy link

linonetwo commented Jun 27, 2023

@so1ve
Copy link

so1ve commented Jun 29, 2023

I think this package is still useful when you want to receive the result from renderer process

@linonetwo
Copy link

linonetwo commented Jun 30, 2023

But you can just call a main process API using proxy, so in main process you receive the result from renderer process like a regular method call.

I think what is boring is receive main message in renderer, which requires view.webContent.send, and I haven't proxy that.

@Shahriar-Sazid
Copy link

Just an FYI that nowadays, electron has a built-in method to do what this package does: ipcMain::handle()

See https://www.electronjs.org/docs/latest/api/ipc-main#ipcmainhandlechannel-listener for details 🙂

Thanks a lot. This is always recommended to use more native things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants