Lightweight isomorphic event emitter