You need to exchange large binary messages using chunks in a WebSocket application. Identify two ways in which you can receive partial messages. (Choose two.)
You need to exchange large binary messages using chunks in a WebSocket application. Identify two ways in which you can receive partial messages. (Choose two.)
To receive partial messages in a WebSocket application, you can use a MessageHandler.Partial<ByteBuffer> interface implementation, which allows you to handle parts of a message as they are received. Additionally, defining an @OnMessage method with a byte array as the first parameter and a boolean as the second parameter provides a mechanism to process message chunks, where the boolean indicates whether the message is complete.
Answer C, D
Correct answers are C and D Oracle reference: https://docs.oracle.com/javaee/7/api/javax/websocket/MessageHandler.Partial.html https://abhishek-gupta.gitbook.io/java-websocket-api-handbook/receiving-messages