WebSocket Methods

WebSocket Methods

.NET Framework (current version)
 

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

NameDescription
System_CAPS_pubmethodAbort()

Aborts the WebSocket connection and cancels any pending IO operations.

System_CAPS_pubmethodCloseAsync(WebSocketCloseStatus, String, CancellationToken)

Closes the WebSocket connection as an asynchronous operation using the close handshake defined in the WebSocket protocol specification section 7.

System_CAPS_pubmethodCloseOutputAsync(WebSocketCloseStatus, String, CancellationToken)

Initiates or completes the close handshake defined in the WebSocket protocol specification section 7.

System_CAPS_pubmethodSystem_CAPS_staticCreateClientBuffer(Int32, Int32)

Create client buffers to use with this WebSocket instance.

System_CAPS_pubmethodSystem_CAPS_staticCreateClientWebSocket(Stream, String, Int32, Int32, TimeSpan, Boolean, ArraySegment<Byte>)

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Allows callers to create a client side WebSocket class which will use the WSPC for framing purposes.

System_CAPS_pubmethodSystem_CAPS_staticCreateServerBuffer(Int32)

Creates a WebSocket server buffer.

System_CAPS_pubmethodDispose()

Used to clean up unmanaged resources for ASP.NET and self-hosted implementations.

System_CAPS_pubmethodEquals(Object)

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

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(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_pubmethodSystem_CAPS_staticIsApplicationTargeting45()

Obsolete.Returns a value that indicates if the WebSocket instance is targeting .NET Framework 4.5.

System_CAPS_protmethodSystem_CAPS_staticIsStateTerminal(WebSocketState)

Returns a value that indicates if the state of the WebSocket instance is closed or aborted.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodReceiveAsync(ArraySegment<Byte>, CancellationToken)

Receives data from the WebSocket connection asynchronously.

System_CAPS_pubmethodSystem_CAPS_staticRegisterPrefixes()

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code. Allows callers to register prefixes for WebSocket requests (ws and wss).

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

Sends data over the WebSocket connection asynchronously.

System_CAPS_protmethodSystem_CAPS_staticThrowOnInvalidState(WebSocketState, WebSocketState[])

Verifies that the connection is in an expected state.

System_CAPS_pubmethodToString()

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

Return to top
Show:
© 2016 Microsoft