The System.Net.WebSockets namespace provides a managed implementation of the WebSocket interface for developers.
Provides a client for connecting to WebSocket services.
Options to use with a ClientWebSocket object.
Provides access to information received by the HttpListener class when accepting WebSocket connections.
The WebSocket class allows applications to send and receive data after the WebSocket upgrade has completed.
Used for accessing the information in the WebSocket handshake.
Represents an exception that occurred when performing an operation on a WebSocket connection.
An instance of this class represents the result of performing a single ReceiveAsync operation on a WebSocket.
Represents well known WebSocket close codes as defined in section 11.7 of the WebSocket protocol spec.
Contains the list of possible WebSocket errors.
Indicates the message type.
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.
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.