Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
System.Net.WebSockets
System Library
| Author | Microsoft |
| Version | 10.0.1 |
| Tags |
Public Types
System.​Net.​WebSockets
struct ValueWebSocketReceiveResult
Represents the result of performing a single <see cref="M:System.Net.WebSockets.WebSocket.ReceiveAsync(System.Memory{System.Byte},System.Threading.CancellationToken)" /> operation on a <see cref="T:System.Net.WebSockets.WebSocket" /> .
class WebSocket
The WebSocket class allows applications to send and receive data after the WebSocket upgrade has completed.
enum WebSocketCloseStatus
Represents well known WebSocket close codes as defined in section 11.7 of the WebSocket protocol spec.
class WebSocketContext
Used for accessing the information in the WebSocket handshake.
class WebSocketCreationOptions
Options that control how a <see cref="T:System.Net.WebSockets.WebSocket" /> is created.
class WebSocketDeflateOptions
Options to enable per-message deflate compression for <see cref="T:System.Net.WebSockets.WebSocket" /> .
enum WebSocketError
Contains the list of possible WebSocket errors.
class WebSocketException
Represents an exception that occurred when performing an operation on a WebSocket connection.
Flags for controlling how the <see cref="T:System.Net.WebSockets.WebSocket" /> should send a message.
enum WebSocketMessageType
Indicates the message type.
class WebSocketReceiveResult
An instance of this class represents the result of performing a single ReceiveAsync operation on a WebSocket.
enum WebSocketState
Defines the different states a WebSockets instance can be in.
class WebSocketStream
Provides a <see cref="T:System.IO.Stream" /> that delegates to a wrapped <see cref="P:System.Net.WebSockets.WebSocketStream.WebSocket" /> .