HTML5 Application Development Fundamentals — Question 17
You work as a senior developer at ABC.com. The ABC.com network consists of a single domain named ABC.com. ABC.com makes use of HTML5 and CSS3 in their development process.
You are running a training exercise for junior developers. You are currently discussing a property of the WebSocket API that returns the type of data received by the onmessage event.
Which of the following is the property being discussed?
Answer options
- A. The extensions property.
- B. The binaryType property.
- C. The readyState property.
- D. The protocol property.
Correct answer: B
Explanation
The correct answer is B, the binaryType property, which specifies the format of the data being transmitted through the WebSocket connection. Options A, C, and D refer to different properties that do not relate to the data type received by the onmessage event, making them incorrect in this context.