Q. 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
πŸ’¬ Discuss
βœ… Correct Answer: (B) Handshake connection
Explanation: The readonly attribute readyState represents the state of the connection. It can have the following values:
Explanation by: Mr. Dubey
The readonly attribute readyState represents the state of the connection. It can have the following values:

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
211
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
98%
Success Rate