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

Closed
amb4eg opened this Issue Mar 28, 2013 · 3 comments

Projects

None yet

3 participants

@amb4eg

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?

@owenc4a4

now, the method is not supported.

@amb4eg

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

@rogerwang
nwjs member

close as duplicate of #213

@rogerwang rogerwang closed this Feb 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment