onMessage

abstract fun onMessage(text: String)

A text message has been received.


abstract fun onMessage(data: ByteArray)

A data message has been received.