Closed demurgos closed 5 years ago
The CI failure seems to be an Appveyor issue (issue in their npm
package). Fixed in https://github.com/tapjs/foreground-child/pull/24.
This looks good to me, but fails test coverage.
This should be a cross-platform feature. The failure is caused by the lack of tests for the clean-up when cancelling the proxy. I'll add some tests.
@demurgos 👋 is this is still something you'd like to land feel free to reopen, it just needs some tests added and we could see it over the finish line.
Why
foregroundChild
is currently hard-coded to only support forwarding with the root process. To support a generalproxy
function between any two objects behaving like processes, we can begin by refactoring the internals to be more parametrized.What
Move the start of the IPC message forwarding to its own function.