How many WebSocket events are available?
A. 2
B. 3
C. 4
D. 5
Answer: Option C
Solution(By Examveda Team)
There are fourWebSocket events namely :1. open
2. close
3. message
4. error
A. 2
B. 3
C. 4
D. 5
Answer: Option C
What does the value 2 of the WebSocket attribute Socket.readyState indicate?
A. Closed connection
B. Handshake connection
C. Unestablished connection
D. Established connection and communication is possible
Which method is used to close the WebSocket?
A. Socket.flush()
B. Socket.close()
C. Socket.Close()
D. Socket.dispose()
Join The Discussion