I2 · Part 2 · Intermediate
EventEmitter & the observer pattern
EventEmitter & the observer pattern
- The EventEmitter class — on/emit/once/removeListener
- Why http, streams and most of Node's core API extend it
- Custom events, error events, the maxListeners warning