ClientWebSocket Methods

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Namespace:   System.Net.WebSockets
Assembly:  System (in System.dll)

NameDescription
System_CAPS_pubmethodAbort()

Aborts the connection and cancels any pending IO operations.(Overrides WebSocket.Abort().)

System_CAPS_pubmethodCloseAsync(WebSocketCloseStatus, String, CancellationToken)

Close the ClientWebSocket instance as an asynchronous operation.(Overrides WebSocket.CloseAsync(WebSocketCloseStatus, String, CancellationToken).)

System_CAPS_pubmethodCloseOutputAsync(WebSocketCloseStatus, String, CancellationToken)

Close the output for the ClientWebSocket instance as an asynchronous operation.(Overrides WebSocket.CloseOutputAsync(WebSocketCloseStatus, String, CancellationToken).)

System_CAPS_pubmethodConnectAsync(Uri, CancellationToken)

Connect to a WebSocket server as an asynchronous operation.

System_CAPS_pubmethodDispose()

Releases the unmanaged resources used by the ClientWebSocket instance.(Overrides WebSocket.Dispose().)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodReceiveAsync(ArraySegment<Byte>, CancellationToken)

Receive data on ClientWebSocket as an asynchronous operation.(Overrides WebSocket.ReceiveAsync(ArraySegment<Byte>, CancellationToken).)

System_CAPS_pubmethodSendAsync(ArraySegment<Byte>, WebSocketMessageType, Boolean, CancellationToken)
System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

Return to top
Show: