You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: