Comment From: sbrannen

Hi @JunggiKim,

Congratulations on opening your first issue for the Spring Framework! 👍

TextWebSocketHandler and BinaryWebSocketHandler both implement the correct methods to reject binary and text messages, respectively.

If you want to support text messages, you could extend TextWebSocketHandler and override the handleTextMessage method accordingly. For a concrete example, see org.springframework.web.socket.sockjs.client.WebSocketTransport.ClientSockJsWebSocketHandler.

Similarly, if you want to support binary messages, you could extend BinaryWebSocketHandler and override the handleBinaryMessage method accordingly.

In light of that, I am closing this issue.