How can we check the subprotocol being used by the client?
A. subprotocol property
B. protocol property
C. clientprotocol property
D. none of the mentioned
Answer: Option B
Solution(By Examveda Team)
Once the connection is established, the client can determine which subprotocol is in use by checking the protocol property of the socket.Related Questions on Sockets
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