To access the EventEmitter class, require('events').EventEmitter.