Closes the WebSocket connection as an asynchronous operation using the close handshake defined in the tp://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-06 section 7.
![]()
Returns System.Threading.Tasks.Task.
The task object representing the asynchronous operation.
This operation will not block. The returned System.Threading.Tasks.Task object will complete after the WebSocket has been closed.
This method closes the WebSocket connection using the close handshake defined in the tp://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-06 section 7.