onEvent

abstract fun onEvent(eventName: String, messageAsJson: String)

Method that will be called on receipt of an event.

Parameters

eventName

the event name

messageAsJson

JSON object with the event message