how about return child process reference?
lifuzhao100 opened this issue · 0 comments
lifuzhao100 commented
i use node-dev as a module in my project
// 1.js
const nodeDev = require('node-dev')
const child = nodeDev('./2.js', [], [], {
ignore: []
})
// child is undefined
// expect
child.on('message', m => {
// do something
})
//process.on('message', m => {
// do something
//})
//2.js
process.send({
message: 'hello world'
})
but i can't get child process reference forked by node-dev, so that i receive nothing;
any solution? or just return child process reference?
thanks for help!!!