获取您的 自己的 Node 服务器
var events = require('events');
var eventEmitter = new events.EventEmitter();

eventEmitter.on('scream', function() {
  console.log('A scream is detected!');
});
eventEmitter.emit('scream');

              
检测到尖叫声!