WebSocket Methods
Assembly: System (in System.dll)
| Name | Description | |
|---|---|---|
![]() | Abort() | Aborts the WebSocket connection and cancels any pending IO operations. |
![]() | CloseAsync(WebSocketCloseStatus, String^, CancellationToken) | Closes the WebSocket connection as an asynchronous operation using the close handshake defined in the WebSocket protocol specification section 7. |
![]() | CloseOutputAsync(WebSocketCloseStatus, String^, CancellationToken) | Initiates or completes the close handshake defined in the WebSocket protocol specification section 7. |
![]() ![]() | CreateClientBuffer(Int32, Int32) | Create client buffers to use with this WebSocket instance. |
![]() ![]() | CreateClientWebSocket(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. |
![]() ![]() | CreateServerBuffer(Int32) | Creates a WebSocket server buffer. |
![]() | Dispose() | Used to clean up unmanaged resources for ASP.NET and self-hosted implementations. |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() ![]() | IsApplicationTargeting45() | Obsolete. Returns a value that indicates if the WebSocket instance is targeting .NET Framework 4.5. |
![]() ![]() | IsStateTerminal(WebSocketState) | Returns a value that indicates if the state of the WebSocket instance is closed or aborted. |
![]() | MemberwiseClone() | |
![]() | ReceiveAsync(ArraySegment<Byte>, CancellationToken) | Receives data from the WebSocket connection asynchronously. |
![]() ![]() | RegisterPrefixes() | 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). |
![]() | SendAsync(ArraySegment<Byte>, WebSocketMessageType, Boolean, CancellationToken) | Sends data over the WebSocket connection asynchronously. |
![]() ![]() | ThrowOnInvalidState(WebSocketState, array<WebSocketState>^) | Verifies that the connection is in an expected state. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |


