98-375 · Question #63
Which two are WebSocket events? (Choose two.)
The correct answer is B. onmessage D. onopen. Following are the events associated with WebSocket object. Assuming we created Socket object: Event, Event Handler, Description This event occurs when socket connection is established. Socket.onmessage This event occurs when client receives data from server. This event occurs…
Question
Which two are WebSocket events? (Choose two.)
Options
- Aonconnect
- Bonmessage
- Condatareceived
- Donopen
How the community answered
(22 responses)- A9% (2)
- B77% (17)
- C14% (3)
Explanation
Following are the events associated with WebSocket object. Assuming we created Socket object: Event, Event Handler, Description This event occurs when socket connection is established. Socket.onmessage This event occurs when client receives data from server. This event occurs when there is any error in communication. This event occurs when connection is closed.
Topics
Community Discussion
No community discussion yet for this question.