System.Net.WebSockets.ClientWebSocket: Method Members

The methods of System.Net.WebSockets.ClientWebSocket are listed below. For a list of all members, see the ClientWebSocket Members list.

See Also: Inherited members from System.Net.WebSockets.WebSocket

Public Methods

override
Abort()

Aborts the connection and cancels any pending IO operations.

override
CloseAsync(WebSocketCloseStatus, string, System.Threading.CancellationToken) : System.Threading.Tasks.Task

Close the System.Net.WebSockets.ClientWebSocket instance as an asynchronous operation.

override
CloseOutputAsync(WebSocketCloseStatus, string, System.Threading.CancellationToken) : System.Threading.Tasks.Task

Close the output for the System.Net.WebSockets.ClientWebSocket instance as an asynchronous operation.

ConnectAsync(Uri, System.Threading.CancellationToken) : System.Threading.Tasks.Task

Connect to a WebSocket server as an asynchronous operation.

override
Dispose()

Releases the unmanaged resources used by the System.Net.WebSockets.ClientWebSocket instance.

override
ReceiveAsync(ArraySegment<byte>, System.Threading.CancellationToken) : System.Threading.Tasks.Task<WebSocketReceiveResult>

Receive data on System.Net.WebSockets.ClientWebSocket as an asynchronous operation.

override
SendAsync(ArraySegment<byte>, WebSocketMessageType, bool, System.Threading.CancellationToken) : System.Threading.Tasks.Task

Send data on System.Net.WebSockets.ClientWebSocket as an asynchronous operation.