onMessage

open fun onMessage(webSocket: IWebSocket, text: String)

Invoked when a text (type 0x1) message has been received.


open fun onMessage(webSocket: IWebSocket, bytes: ByteString)

Invoked when a binary (type 0x2) message has been received.