Custom Event Emitter (Node.js) Write your own MyEventEmitter class with the same interface as in Node.js. Required methods are: on once off emit prependListener prependOnceListener removeAllListeners listenerCount Read the guideline before start