Custom Text and Binary Payloads using WebSocket (TOTD #186)
- by arungupta
TOTD #185 explained how to process text and binary payloads in
a WebSocket endpoint. In summary, a text payload may be received as
public void receiveTextMessage(String message) { . . . }
And binary payload may be received as:
public void recieveBinaryMessage(ByteBuffer message) { . . .}
As you realize, both…