You need to develop a chat application, which allows the display of emoticons and images together with text messages.
How should you configure a WebSocket endpoints to receive both text and binary messages?
You need to develop a chat application, which allows the display of emoticons and images together with text messages.
How should you configure a WebSocket endpoints to receive both text and binary messages?
To configure a WebSocket endpoint to receive both text and binary messages, you should create two @onMessage methods, each with appropriate decoder attributes in the same endpoint. This allows the endpoint to handle both types of messages correctly by specifying how each type should be decoded, thereby ensuring proper handling of both text and binary data.
yes A is correct.
D is correct as per some other sites
correct is: D