onMessage

abstract fun onMessage(event: T)

Called when an event message is received.

Parameters

event

The event message.