onEvent

abstract fun onEvent(eventSource: EventSource, event: Event)(source)

Invoked when a new Event has been received.