This listener is notified whenever a given event is triggered, whether by this client or by another. It can be added via EventHandler.subscribe(eventName,listener)
Methods
onEvent(name,data)
void onEvent(String eventName, Object data)
argument | type | description |
---|---|---|
eventName | String | The event name |
data | Object | The arguments that the event has been called with |