Vidyalelo
JavaScript · Q4

Sockets

Programming · JavaScript · question 4

Q4

Which method is used to close the WebSocket?

A.
Socket.flush()
B.
Socket.close()
Answer
C.
Socket.Close()
D.
Socket.dispose()

Answer: Option B

Solution

Answer: Option B
Solution:
The Socket.close() is used to close the WebSocket.