A lightweight event emitter for clients and servers