A quick demonstration of how node’s EventEmitter can be extended.
See this gist for another example, demonstrating how EventEmitter can be used to implement the Observer pattern.
EventEmitter