Export (0) Print
Expand All
1 out of 6 rated this helpful - Rate this topic

System.Net.WebSockets Namespace

.NET Framework 4.5

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

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.

  Class Description
Public class ClientWebSocket Provides a client for connecting to WebSocket services.
Public class ClientWebSocketOptions Options to use with a ClientWebSocket object.
Public class HttpListenerWebSocketContext Provides access to information received by the HttpListener class when accepting WebSocket connections.
Public class WebSocket The WebSocket class allows applications to send and receive data after the WebSocket upgrade has completed.
Public class WebSocketContext Used for accessing the information in the WebSocket handshake.
Public class WebSocketException Represents an exception that occurred when performing an operation on a WebSocket connection.
Public class WebSocketReceiveResult An instance of this class represents the result of performing a single ReceiveAsync operation on a WebSocket.
  Enumeration Description
Public enumeration WebSocketCloseStatus Represents well known WebSocket close codes as defined in section 11.7 of the WebSocket protocol spec.
Public enumeration WebSocketError Contains the list of possible WebSocket errors.
Public enumeration WebSocketMessageType Indicates the message type.
Public enumeration WebSocketState Defines the different states a WebSockets instance can be in.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.