Emitter for both client and server.