System.Net.WebSockets.ClientWebSocket Members

The members of System.Net.WebSockets.ClientWebSocket are listed below.

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

Public Constructors

Creates an instance of the System.Net.WebSockets.ClientWebSocket class.

Public Properties

[read-only]
override
CloseStatusNullable<WebSocketCloseStatus>.

Gets the reason why the close handshake was initiated on System.Net.WebSockets.ClientWebSocket instance.

[read-only]
override
CloseStatusDescriptionstring.

Gets a description of the reason why the System.Net.WebSockets.ClientWebSocket instance was closed.

[read-only]
OptionsClientWebSocketOptions.

Gets the WebSocket options for the System.Net.WebSockets.ClientWebSocket instance.

[read-only]
override
StateWebSocketState.

Get the WebSocket state of the System.Net.WebSockets.ClientWebSocket instance.

[read-only]
override
SubProtocolstring.

Gets the supported WebSocket sub-protocol for the System.Net.WebSockets.ClientWebSocket instance.

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.