-
Notifications
You must be signed in to change notification settings - Fork 285
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
Help with IPC and child_process with ES6 #1383
Comments
cc @nodejs/child_process @nodejs/modules-active-members |
Can you try putting the |
in general you can see dropped messages due to timing like @benjamingr said, it is a much more foolproof workflow to have your child notify the parent that it is fully loaded before sending it messages from the parent. |
@benjamingr Thank you! You're correct. @bmeck, yes, that is a much better approach. Thank you both for the help. |
IPC with a ES6 child process created via child_process.fork() appears to go nowhere. When sending a message, the child appears to never receive it. Further testing shows that other events (eg exit) are working.
To demonstrate, parent.mjs:
And test.mjs
To test further, I created my own named socket IPC using net.createServer(path), between such a parent and child, and bidirectional communication is working.
I really just want to know if this is something I should create an issue about.
The text was updated successfully, but these errors were encountered: