System.Net.WebSockets

System.Net.WebSockets Namespace

.NET Framework (current version)
 

The System.Net.WebSockets namespace provides a managed implementation of the WebSocket interface for developers.

ClassDescription
System_CAPS_pubclassClientWebSocket

Provides a client for connecting to WebSocket services.

System_CAPS_pubclassClientWebSocketOptions

Options to use with a ClientWebSocket object.

System_CAPS_pubclassHttpListenerWebSocketContext

Provides access to information received by the HttpListener class when accepting WebSocket connections.

System_CAPS_pubclassWebSocket

The WebSocket class allows applications to send and receive data after the WebSocket upgrade has completed.

System_CAPS_pubclassWebSocketContext

Used for accessing the information in the WebSocket handshake.

System_CAPS_pubclassWebSocketException

Represents an exception that occurred when performing an operation on a WebSocket connection.

System_CAPS_pubclassWebSocketReceiveResult

An instance of this class represents the result of performing a single ReceiveAsync operation on a WebSocket.

EnumerationDescription
System_CAPS_pubenumWebSocketCloseStatus

Represents well known WebSocket close codes as defined in section 11.7 of the WebSocket protocol spec.

System_CAPS_pubenumWebSocketError

Contains the list of possible WebSocket errors.

System_CAPS_pubenumWebSocketMessageType

Indicates the message type.

System_CAPS_pubenumWebSocketState

Defines the different states a WebSockets instance can be in.

Some of the classes in the System.Net.WebSockets namespace are supported on Windows 7, Windows Vista SP2, and Windows Server 2008. However, the only public implementations of client and server WebSockets are supported on Windows 8 and Windows Server 2012. The classes and class elements in the System.Net.WebSockets namespace that are supported on Windows 7, Windows Vista SP2, and Windows Server 2008 are abstract classes. This allows an application developer to inherit and extend these abstract classes with an actual implementation of client WebSockets.

Return to top
Show:
© 2016 Microsoft