Which of the following is not a WebSocket event?
A. open
B. close
C. error
D. deny
Answer: Option D
Solution(By Examveda Team)
There is no WebSocket event named deny. The four WebSocket events are1. open
2. close
3. essage
4. error
A. open
B. close
C. error
D. deny
Answer: Option D
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