WebSocket Methods

.NET Framework 4.5

The WebSocket type exposes the following members.

  Name Description
Public method Abort Aborts the WebSocket connection and cancels any pending IO operations.
Public method CloseAsync Closes the WebSocket connection as an asynchronous operation using the close handshake defined in the WebSocket protocol specification section 7.
Public method CloseOutputAsync Initiates or completes the close handshake defined in the WebSocket protocol specification section 7.
Public method Static member CreateClientBuffer Create client buffers to use with this WebSocket instance.
Public method Static member CreateClientWebSocket 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.
Public method Static member CreateServerBuffer Creates a WebSocket server buffer.
Public method Dispose Used to clean up unmanaged resources for ASP.NET and self-hosted implementations.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Static member IsApplicationTargeting45 Obsolete. Returns a value that indicates if the WebSocket instance is targeting .NET Framework 4.5.
Protected method Static member IsStateTerminal Returns a value that indicates if the state of the WebSocket instance is closed or aborted.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ReceiveAsync Receives data from the WebSocket connection asynchronously.
Public method Static member 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).
Public method SendAsync Sends data over the WebSocket connection asynchronously.
Protected method Static member ThrowOnInvalidState Verifies that the connection is in an expected state.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft