UNPKG

handz

Version:

Facebook-chat-api protect and deploy by Kanzu and HZI Team

18 lines (13 loc) 435 B
// Node.js program to demonstrate the // Process 'message' Event // Importing process module const cp = require('child_process'); // Initiating child process const process = cp.fork(`${__dirname}/testv2.js`); // Message Event process.on('message', (m) => { console.log('PARENT got message:', m); }); // Causes the child to print: // CHILD got message: { hello: 'world' } process.send({ hello: 'world' });