Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

nw open window as child-process communications not work #577

Closed
amb4eg opened this Issue · 3 comments

3 participants

Anton Ma Donghao Roger Wang
Anton

I try open new window as 'child-process' fork with new dir and pakage file
var cp = require('child_process');
global.n = cp.fork('./node-webkit',
{ encoding: 'utf8',
timeout: 0,
maxBuffer: 200*1024,
killSignal: 'SIGTERM',
cwd: null,
env: {PORT:8000}
});
and send message to new process:
global.n.send({ hello: 'world' });

In child process event not call 8-(
process.on('message', function(m) {

console.log('message: '+m);

});
There is possible to use this method?

Ma Donghao

now, the method is not supported.

Anton

Possible to make inter-process communication in a future version?

Roger Wang
Owner

close as duplicate of #213

Roger Wang rogerwang closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.