Skip to content
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

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

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

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

amb4eg opened this issue Mar 28, 2013 · 3 comments

Comments

@amb4eg
Copy link

amb4eg commented Mar 28, 2013

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
Copy link
Contributor

now, the method is not supported.

@amb4eg
Copy link
Author

amb4eg commented Mar 29, 2013

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

@rogerwang
Copy link
Member

close as duplicate of #213

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants