Changing Wamp to emit Event as an object