using on method for event emitter
using once method for single event emitter
A simple publish/subscribe system using an event emitter
creating a listener to clean up when clients disconnect