Close the System.Net.WebSockets.ClientWebSocket instance as an asynchronous operation.
![]()
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 System.Net.WebSockets.ClientWebSocket instance is closed.