event emitter from events node js null code example
Example: eventemitter nodejs
myEmitter.on('status', (code, msg)=> console.log(`Got ${code} and ${msg}`));
myEmitter.on('status', (code, msg)=> console.log(`Got ${code} and ${msg}`));