Make EventEmitter available on client and update example