Which method is used to close the WebSocket?
A
Socket.flush()
B
Socket.close()
C
Socket.Close()
D
Socket.dispose()
Correct Answer: Socket.close()
The Socket.close() is used to close the WebSocket. The Close method closes the remote host connection and releases all managed and unmanaged resources associated with the Socket. WebSocket is a computer communications protocol, providing full-duplex communication channels over a single TCP connection.