How will you transmit data using the connection?
A. send(data)
B. Socket.send(“data”)
C. Socket.send(data)
D. Socket(data)
Answer: Option C
A. send(data)
B. Socket.send(“data”)
C. Socket.send(data)
D. Socket(data)
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