open fun onMessage(webSocket: WebSocket, text: String): Unit
Invoked when a text (type 0x1) message has been received.
open fun onMessage(webSocket: WebSocket, bytes: ByteString): Unit
Invoked when a binary (type 0x2) message has been received.