This examples shows how to use the revealing constructor pattern to implement a read only event emitter, a special event emitter that, once is constructed, it will allow you to only use the "on" method and not the "emit" method. To run the example you can simply run: node example The example will run continuously, so you need to stop it with CTRL+C.