I\'m using Node v6.2.2 and Electron v1.2.5.
I have a small application that I\'ve built on top of Electron and now I need to fork
the process to run som
Also, you can fork nodejs file inside electron process:
let serverProc = require('child_process').fork(
require.resolve('./server.js'),
['--key', 'value'], // pass to process.argv into child
{
// options
}
)
serverProc.on('exit', (code, sig) => {
// finishing
})
serverProc.on('error', (error) => {
// error handling
})