1 <?xml version="1.0" encoding="utf-8"?><doc>
3 <name>System.Net.WebSockets</name>
6 <member name="T:System.Net.WebSockets.WebSocket">
7 <summary>The WebSocket class allows applications to send and receive data after the WebSocket upgrade has completed.</summary>
9 <member name="M:System.Net.WebSockets.WebSocket.#ctor">
10 <summary>Creates an instance of the <see cref="T:System.Net.WebSockets.WebSocket"></see> class.</summary>
12 <member name="M:System.Net.WebSockets.WebSocket.Abort">
13 <summary>Aborts the WebSocket connection and cancels any pending IO operations.</summary>
15 <member name="M:System.Net.WebSockets.WebSocket.CloseAsync(System.Net.WebSockets.WebSocketCloseStatus,System.String,System.Threading.CancellationToken)">
16 <summary>Closes the WebSocket connection as an asynchronous operation using the close handshake defined in the WebSocket protocol specification section 7.</summary>
17 <param name="closeStatus">Indicates the reason for closing the WebSocket connection.</param>
18 <param name="statusDescription">Specifies a human readable explanation as to why the connection is closed.</param>
19 <param name="cancellationToken">The token that can be used to propagate notification that operations should be canceled.</param>
20 <returns>Returns <see cref="System.Threading.Tasks.Task"></see>.
21 The task object representing the asynchronous operation.</returns>
23 <member name="M:System.Net.WebSockets.WebSocket.CloseOutputAsync(System.Net.WebSockets.WebSocketCloseStatus,System.String,System.Threading.CancellationToken)">
24 <summary>Initiates or completes the close handshake defined in the WebSocket protocol specification section 7.</summary>
25 <param name="closeStatus">Indicates the reason for closing the WebSocket connection.</param>
26 <param name="statusDescription">Allows applications to specify a human readable explanation as to why the connection is closed.</param>
27 <param name="cancellationToken">The token that can be used to propagate notification that operations should be canceled.</param>
28 <returns>Returns <see cref="System.Threading.Tasks.Task"></see>.
29 The task object representing the asynchronous operation.</returns>
31 <member name="P:System.Net.WebSockets.WebSocket.CloseStatus">
32 <summary>Indicates the reason why the remote endpoint initiated the close handshake.</summary>
33 <returns>Returns <see cref="System.Net.WebSockets.WebSocketCloseStatus"></see>.</returns>
35 <member name="P:System.Net.WebSockets.WebSocket.CloseStatusDescription">
36 <summary>Allows the remote endpoint to describe the reason why the connection was closed.</summary>
37 <returns>Returns <see cref="System.String"></see>.</returns>
39 <member name="M:System.Net.WebSockets.WebSocket.CreateClientBuffer(System.Int32,System.Int32)">
40 <summary>Create client buffers to use with this <see cref="T:System.Net.WebSockets.WebSocket"></see> instance.</summary>
41 <param name="receiveBufferSize">The size, in bytes, of the client receive buffer.</param>
42 <param name="sendBufferSize">The size, in bytes, of the send buffer.</param>
43 <returns>Returns <see cref="System.ArraySegment`1"></see>.
44 An array with the client buffers.</returns>
46 <member name="M:System.Net.WebSockets.WebSocket.CreateClientWebSocket(System.IO.Stream,System.String,System.Int32,System.Int32,System.TimeSpan,System.Boolean,System.ArraySegment{System.Byte})">
47 <summary>This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
48 Allows callers to create a client side WebSocket class which will use the WSPC for framing purposes.</summary>
49 <param name="innerStream">The connection to be used for IO operations.</param>
50 <param name="subProtocol">The subprotocol accepted by the client.</param>
51 <param name="receiveBufferSize">The size in bytes of the client WebSocket receive buffer.</param>
52 <param name="sendBufferSize">The size in bytes of the client WebSocket send buffer.</param>
53 <param name="keepAliveInterval">Determines how regularly a frame is sent over the connection as a keep-alive. Applies only when the connection is idle.</param>
54 <param name="useZeroMaskingKey">Indicates whether a random key or a static key (just zeros) should be used for the WebSocket masking.</param>
55 <param name="internalBuffer">Will be used as the internal buffer in the WPC. The size has to be at least 2 * ReceiveBufferSize + SendBufferSize + 256 + 20 (16 on 32-bit).</param>
56 <returns>Returns <see cref="System.Net.WebSockets.WebSocket"></see>.</returns>
58 <member name="M:System.Net.WebSockets.WebSocket.CreateServerBuffer(System.Int32)">
59 <summary>Creates a WebSocket server buffer.</summary>
60 <param name="receiveBufferSize">The size, in bytes, of the desired buffer.</param>
61 <returns>Returns <see cref="System.ArraySegment`1"></see>.</returns>
63 <member name="P:System.Net.WebSockets.WebSocket.DefaultKeepAliveInterval">
64 <summary>Gets the default WebSocket protocol keep-alive interval in milliseconds.</summary>
65 <returns>Returns <see cref="System.TimeSpan"></see>.
66 The default WebSocket protocol keep-alive interval in milliseconds. The typical value for this interval is 30 seconds.</returns>
68 <member name="M:System.Net.WebSockets.WebSocket.Dispose">
69 <summary>Used to clean up unmanaged resources for ASP.NET and self-hosted implementations.</summary>
71 <member name="M:System.Net.WebSockets.WebSocket.IsApplicationTargeting45">
72 <summary>Returns a value that indicates if the WebSocket instance is targeting .NET Framework 4.5.</summary>
73 <returns>Returns <see cref="System.Boolean"></see>.
74 true if the <see cref="System.Net.WebSockets.WebSocket"></see> is targeting .NET Framework 4.5; otherwise false.</returns>
76 <member name="M:System.Net.WebSockets.WebSocket.IsStateTerminal(System.Net.WebSockets.WebSocketState)">
77 <summary>Returns a value that indicates if the state of the WebSocket instance is closed or aborted.</summary>
78 <param name="state">The current state of the WebSocket.</param>
79 <returns>Returns <see cref="System.Boolean"></see>.
80 true if the <see cref="System.Net.WebSockets.WebSocket"></see> is closed or aborted; otherwise false.</returns>
82 <member name="M:System.Net.WebSockets.WebSocket.ReceiveAsync(System.ArraySegment{System.Byte},System.Threading.CancellationToken)">
83 <summary>Receives data from the <see cref="T:System.Net.WebSockets.WebSocket"></see> connection asynchronously.</summary>
84 <param name="buffer">References the application buffer that is the storage location for the received data.</param>
85 <param name="cancellationToken">Propagates the notification that operations should be canceled.</param>
86 <returns>Returns <see cref="System.Threading.Tasks.Task`1"></see>.
87 The task object representing the asynchronous operation. The <see cref="System.Threading.Tasks.Task`1.Result"></see> property on the task object returns a <see cref="System.Byte"></see> array containing the received data.</returns>
89 <member name="M:System.Net.WebSockets.WebSocket.RegisterPrefixes">
90 <summary>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).</summary>
92 <member name="M:System.Net.WebSockets.WebSocket.SendAsync(System.ArraySegment{System.Byte},System.Net.WebSockets.WebSocketMessageType,System.Boolean,System.Threading.CancellationToken)">
93 <summary>Sends data over the <see cref="T:System.Net.WebSockets.WebSocket"></see> connection asynchronously.</summary>
94 <param name="buffer">The buffer to be sent over the connection.</param>
95 <param name="messageType">Indicates whether the application is sending a binary or text message.</param>
96 <param name="endOfMessage">Indicates whether the data in &quot;buffer&quot; is the last part of a message.</param>
97 <param name="cancellationToken">The token that propagates the notification that operations should be canceled.</param>
98 <returns>The task object representing the asynchronous operation.</returns>
100 <member name="P:System.Net.WebSockets.WebSocket.State">
101 <summary>Returns the current state of the WebSocket connection.</summary>
102 <returns>Returns <see cref="System.Net.WebSockets.WebSocketState"></see>.</returns>
104 <member name="P:System.Net.WebSockets.WebSocket.SubProtocol">
105 <summary>The subprotocol that was negotiated during the opening handshake.</summary>
106 <returns>Returns <see cref="System.String"></see>.</returns>
108 <member name="M:System.Net.WebSockets.WebSocket.ThrowOnInvalidState(System.Net.WebSockets.WebSocketState,System.Net.WebSockets.WebSocketState[])">
109 <summary>Verifies that the connection is in an expected state.</summary>
110 <param name="state">The current state of the WebSocket to be tested against the list of valid states.</param>
111 <param name="validStates">List of valid connection states.</param>
113 <member name="T:System.Net.WebSockets.WebSocketCloseStatus">
114 <summary>Represents well known WebSocket close codes as defined in section 11.7 of the WebSocket protocol spec.</summary>
116 <member name="F:System.Net.WebSockets.WebSocketCloseStatus.Empty">
117 <summary>No error specified.</summary>
120 <member name="F:System.Net.WebSockets.WebSocketCloseStatus.EndpointUnavailable">
121 <summary>(1001) Indicates an endpoint is being removed. Either the server or client will become unavailable.</summary>
124 <member name="F:System.Net.WebSockets.WebSocketCloseStatus.InternalServerError">
125 <summary>The connection will be closed by the server because of an error on the server.</summary>
128 <member name="F:System.Net.WebSockets.WebSocketCloseStatus.InvalidMessageType">
129 <summary>(1003) The client or server is terminating the connection because it cannot accept the data type it received.</summary>
132 <member name="F:System.Net.WebSockets.WebSocketCloseStatus.InvalidPayloadData">
133 <summary>(1007) The client or server is terminating the connection because it has received data inconsistent with the message type.</summary>
136 <member name="F:System.Net.WebSockets.WebSocketCloseStatus.MandatoryExtension">
137 <summary>(1010) The client is terminating the connection because it expected the server to negotiate an extension.</summary>
140 <member name="F:System.Net.WebSockets.WebSocketCloseStatus.MessageTooBig">
141 <summary>(1004) Reserved for future use.</summary>
144 <member name="F:System.Net.WebSockets.WebSocketCloseStatus.NormalClosure">
145 <summary>(1000) The connection has closed after the request was fulfilled.</summary>
148 <member name="F:System.Net.WebSockets.WebSocketCloseStatus.PolicyViolation">
149 <summary>(1008) The connection will be closed because an endpoint has received a message that violates its policy.</summary>
152 <member name="F:System.Net.WebSockets.WebSocketCloseStatus.ProtocolError">
153 <summary>(1002) The client or server is terminating the connection because of a protocol error.</summary>
156 <member name="T:System.Net.WebSockets.WebSocketContext">
157 <summary>Used for accessing the information in the WebSocket handshake.</summary>
159 <member name="M:System.Net.WebSockets.WebSocketContext.#ctor">
160 <summary>Creates an instance of the <see cref="T:System.Net.WebSockets.WebSocketContext"></see> class.</summary>
162 <member name="P:System.Net.WebSockets.WebSocketContext.CookieCollection">
163 <summary>The cookies that were passed to the server during the opening handshake.</summary>
164 <returns>Returns <see cref="System.Net.CookieCollection"></see>.</returns>
166 <member name="P:System.Net.WebSockets.WebSocketContext.Headers">
167 <summary>The HTTP headers that were sent to the server during the opening handshake.</summary>
168 <returns>Returns <see cref="System.Collections.Specialized.NameValueCollection"></see>.</returns>
170 <member name="P:System.Net.WebSockets.WebSocketContext.IsAuthenticated">
171 <summary>Whether the WebSocket client is authenticated.</summary>
172 <returns>Returns <see cref="System.Boolean"></see>.</returns>
174 <member name="P:System.Net.WebSockets.WebSocketContext.IsLocal">
175 <summary>Whether the WebSocket client connected from the local machine.</summary>
176 <returns>Returns <see cref="System.Boolean"></see>.</returns>
178 <member name="P:System.Net.WebSockets.WebSocketContext.IsSecureConnection">
179 <summary>Whether the WebSocket connection is secured using Secure Sockets Layer (SSL).</summary>
180 <returns>Returns <see cref="System.Boolean"></see>.</returns>
182 <member name="P:System.Net.WebSockets.WebSocketContext.Origin">
183 <summary>The value of the Origin HTTP header included in the opening handshake.</summary>
184 <returns>Returns <see cref="System.String"></see>.</returns>
186 <member name="P:System.Net.WebSockets.WebSocketContext.RequestUri">
187 <summary>The URI requested by the WebSocket client.</summary>
188 <returns>Returns <see cref="System.Uri"></see>.</returns>
190 <member name="P:System.Net.WebSockets.WebSocketContext.SecWebSocketKey">
191 <summary>The value of the SecWebSocketKey HTTP header included in the opening handshake.</summary>
192 <returns>Returns <see cref="System.String"></see>.</returns>
194 <member name="P:System.Net.WebSockets.WebSocketContext.SecWebSocketProtocols">
195 <summary>The value of the SecWebSocketKey HTTP header included in the opening handshake.</summary>
196 <returns>Returns <see cref="System.Collections.Generic.IEnumerable`1"></see>.</returns>
198 <member name="P:System.Net.WebSockets.WebSocketContext.SecWebSocketVersion">
199 <summary>The list of subprotocols requested by the WebSocket client.</summary>
200 <returns>Returns <see cref="System.String"></see>.</returns>
202 <member name="P:System.Net.WebSockets.WebSocketContext.User">
203 <summary>An object used to obtain identity, authentication information, and security roles for the WebSocket client.</summary>
204 <returns>Returns <see cref="System.Security.Principal.IPrincipal"></see>.</returns>
206 <member name="P:System.Net.WebSockets.WebSocketContext.WebSocket">
207 <summary>The WebSocket instance used to interact (send/receive/close/etc) with the WebSocket connection.</summary>
208 <returns>Returns <see cref="System.Net.WebSockets.WebSocket"></see>.</returns>
210 <member name="T:System.Net.WebSockets.WebSocketError">
211 <summary>Contains the list of possible WebSocket errors.</summary>
213 <member name="F:System.Net.WebSockets.WebSocketError.ConnectionClosedPrematurely">
214 <summary>Indicates that the connection was terminated unexpectedly.</summary>
217 <member name="F:System.Net.WebSockets.WebSocketError.Faulted">
218 <summary>Indicates a general error.</summary>
221 <member name="F:System.Net.WebSockets.WebSocketError.HeaderError">
222 <summary>Indicates an error occurred when parsing the HTTP headers during the opening handshake.</summary>
225 <member name="F:System.Net.WebSockets.WebSocketError.InvalidMessageType">
226 <summary>Indicates that a WebSocket frame with an unknown opcode was received.</summary>
229 <member name="F:System.Net.WebSockets.WebSocketError.InvalidState">
230 <summary>Indicates the WebSocket is an invalid state for the given operation (such as being closed or aborted).</summary>
233 <member name="F:System.Net.WebSockets.WebSocketError.NativeError">
234 <summary>Indicates that an unknown native error occurred.</summary>
237 <member name="F:System.Net.WebSockets.WebSocketError.NotAWebSocket">
238 <summary>Indicates that the incoming request was not a valid websocket request.</summary>
241 <member name="F:System.Net.WebSockets.WebSocketError.Success">
242 <summary>Indicates that there was no native error information for the exception.</summary>
245 <member name="F:System.Net.WebSockets.WebSocketError.UnsupportedProtocol">
246 <summary>Indicates that the client requested an unsupported WebSocket subprotocol.</summary>
249 <member name="F:System.Net.WebSockets.WebSocketError.UnsupportedVersion">
250 <summary>Indicates that the client requested an unsupported version of the WebSocket protocol.</summary>
253 <member name="T:System.Net.WebSockets.WebSocketException">
254 <summary>Represents an exception that occurred when performing an operation on a WebSocket connection.</summary>
256 <member name="M:System.Net.WebSockets.WebSocketException.#ctor">
257 <summary>Creates an instance of the <see cref="T:System.Net.WebSockets.WebSocketException"></see> class.</summary>
259 <member name="M:System.Net.WebSockets.WebSocketException.#ctor(System.Net.WebSockets.WebSocketError,System.Int32,System.String,System.Exception)">
260 <summary>Creates an instance of the <see cref="T:System.Net.WebSockets.WebSocketException"></see> class.</summary>
261 <param name="error">The error from the WebSocketError enumeration.</param>
262 <param name="nativeError">The native error code for the exception.</param>
263 <param name="message">The description of the error.</param>
264 <param name="innerException">Indicates the previous exception that led to the current exception.</param>
266 <member name="M:System.Net.WebSockets.WebSocketException.#ctor(System.Net.WebSockets.WebSocketError,System.String,System.Exception)">
267 <summary>Creates an instance of the <see cref="T:System.Net.WebSockets.WebSocketException"></see> class.</summary>
268 <param name="error">The error from the WebSocketError enumeration.</param>
269 <param name="message">The description of the error.</param>
270 <param name="innerException">Indicates the previous exception that led to the current exception.</param>
272 <member name="M:System.Net.WebSockets.WebSocketException.#ctor(System.Net.WebSockets.WebSocketError,System.Int32,System.String)">
273 <summary>Creates an instance of the <see cref="T:System.Net.WebSockets.WebSocketException"></see> class.</summary>
274 <param name="error">The error from the WebSocketError enumeration.</param>
275 <param name="nativeError">The native error code for the exception.</param>
276 <param name="message">The description of the error.</param>
278 <member name="M:System.Net.WebSockets.WebSocketException.#ctor(System.Net.WebSockets.WebSocketError,System.Int32,System.Exception)">
279 <summary>Creates an instance of the <see cref="T:System.Net.WebSockets.WebSocketException"></see> class.</summary>
280 <param name="error">The error from the WebSocketError enumeration.</param>
281 <param name="nativeError">The native error code for the exception.</param>
282 <param name="innerException">Indicates the previous exception that led to the current exception.</param>
284 <member name="M:System.Net.WebSockets.WebSocketException.#ctor(System.String,System.Exception)">
285 <summary>Creates an instance of the <see cref="T:System.Net.WebSockets.WebSocketException"></see> class.</summary>
286 <param name="message">The description of the error.</param>
287 <param name="innerException">Indicates the previous exception that led to the current exception.</param>
289 <member name="M:System.Net.WebSockets.WebSocketException.#ctor(System.Net.WebSockets.WebSocketError,System.Int32)">
290 <summary>Creates an instance of the <see cref="T:System.Net.WebSockets.WebSocketException"></see> class.</summary>
291 <param name="error">The error from the WebSocketError enumeration.</param>
292 <param name="nativeError">The native error code for the exception.</param>
294 <member name="M:System.Net.WebSockets.WebSocketException.#ctor(System.Net.WebSockets.WebSocketError,System.String)">
295 <summary>Creates an instance of the <see cref="T:System.Net.WebSockets.WebSocketException"></see> class.</summary>
296 <param name="error">The error from the WebSocketError enumeration.</param>
297 <param name="message">The description of the error.</param>
299 <member name="M:System.Net.WebSockets.WebSocketException.#ctor(System.Int32,System.String)">
300 <summary>Creates an instance of the <see cref="T:System.Net.WebSockets.WebSocketException"></see> class.</summary>
301 <param name="nativeError">The native error code for the exception.</param>
302 <param name="message">The description of the error.</param>
304 <member name="M:System.Net.WebSockets.WebSocketException.#ctor(System.Int32,System.Exception)">
305 <summary>Creates an instance of the <see cref="T:System.Net.WebSockets.WebSocketException"></see> class.</summary>
306 <param name="nativeError">The native error code for the exception.</param>
307 <param name="innerException">Indicates the previous exception that led to the current exception.</param>
309 <member name="M:System.Net.WebSockets.WebSocketException.#ctor(System.String)">
310 <summary>Creates an instance of the <see cref="T:System.Net.WebSockets.WebSocketException"></see> class.</summary>
311 <param name="message">The description of the error.</param>
313 <member name="M:System.Net.WebSockets.WebSocketException.#ctor(System.Net.WebSockets.WebSocketError)">
314 <summary>Creates an instance of the <see cref="T:System.Net.WebSockets.WebSocketException"></see> class.</summary>
315 <param name="error">The error from the WebSocketError enumeration.</param>
317 <member name="M:System.Net.WebSockets.WebSocketException.#ctor(System.Int32)">
318 <summary>Creates an instance of the <see cref="T:System.Net.WebSockets.WebSocketException"></see> class.</summary>
319 <param name="nativeError">The native error code for the exception.</param>
321 <member name="M:System.Net.WebSockets.WebSocketException.#ctor(System.Net.WebSockets.WebSocketError,System.Exception)">
322 <summary>Creates an instance of the <see cref="T:System.Net.WebSockets.WebSocketException"></see> class.</summary>
323 <param name="error">The error from the WebSocketError enumeration.</param>
324 <param name="innerException">Indicates the previous exception that led to the current exception.</param>
326 <member name="P:System.Net.WebSockets.WebSocketException.ErrorCode">
327 <summary>The native error code for the exception that occurred.</summary>
328 <returns>Returns <see cref="System.Int32"></see>.</returns>
330 <member name="M:System.Net.WebSockets.WebSocketException.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
331 <summary>Sets the SerializationInfo object with the file name and line number where the exception occurred.</summary>
332 <param name="info">A SerializationInfo object.</param>
333 <param name="context">The contextual information about the source or destination.</param>
335 <member name="P:System.Net.WebSockets.WebSocketException.WebSocketErrorCode">
336 <summary>Returns a WebSocketError indicating the type of error that occurred.</summary>
337 <returns>Returns <see cref="System.Net.WebSockets.WebSocketError"></see>.</returns>
339 <member name="T:System.Net.WebSockets.WebSocketMessageType">
340 <summary>Indicates the message type.</summary>
342 <member name="F:System.Net.WebSockets.WebSocketMessageType.Binary">
343 <summary>The message is in binary format.</summary>
346 <member name="F:System.Net.WebSockets.WebSocketMessageType.Close">
347 <summary>A receive has completed because a close message was received.</summary>
350 <member name="F:System.Net.WebSockets.WebSocketMessageType.Text">
351 <summary>The message is clear text.</summary>
354 <member name="T:System.Net.WebSockets.WebSocketReceiveResult">
355 <summary>An instance of this class represents the result of performing a single ReceiveAsync operation on a WebSocket.</summary>
357 <member name="M:System.Net.WebSockets.WebSocketReceiveResult.#ctor(System.Int32,System.Net.WebSockets.WebSocketMessageType,System.Boolean)">
358 <summary>Creates an instance of the <see cref="T:System.Net.WebSockets.WebSocketReceiveResult"></see> class.</summary>
359 <param name="count">The number of bytes received.</param>
360 <param name="messageType">The type of message that was received.</param>
361 <param name="endOfMessage">Indicates whether this is the final message.</param>
363 <member name="M:System.Net.WebSockets.WebSocketReceiveResult.#ctor(System.Int32,System.Net.WebSockets.WebSocketMessageType,System.Boolean,System.Nullable{System.Net.WebSockets.WebSocketCloseStatus},System.String)">
364 <summary>Creates an instance of the <see cref="T:System.Net.WebSockets.WebSocketReceiveResult"></see> class.</summary>
365 <param name="count">The number of bytes received.</param>
366 <param name="messageType">The type of message that was received.</param>
367 <param name="endOfMessage">Indicates whether this is the final message.</param>
368 <param name="closeStatus">Indicates the <see cref="T:System.Net.WebSockets.WebSocketCloseStatus"></see> of the connection.</param>
369 <param name="closeStatusDescription">The description of closeStatus.</param>
371 <member name="P:System.Net.WebSockets.WebSocketReceiveResult.CloseStatus">
372 <summary>Indicates the reason why the remote endpoint initiated the close handshake.</summary>
373 <returns>Returns <see cref="System.Net.WebSockets.WebSocketCloseStatus"></see>.</returns>
375 <member name="P:System.Net.WebSockets.WebSocketReceiveResult.CloseStatusDescription">
376 <summary>Returns the optional description that describes why the close handshake has been initiated by the remote endpoint.</summary>
377 <returns>Returns <see cref="System.String"></see>.</returns>
379 <member name="P:System.Net.WebSockets.WebSocketReceiveResult.Count">
380 <summary>Indicates the number of bytes that the WebSocket received.</summary>
381 <returns>Returns <see cref="System.Int32"></see>.</returns>
383 <member name="P:System.Net.WebSockets.WebSocketReceiveResult.EndOfMessage">
384 <summary>Indicates whether the message has been received completely.</summary>
385 <returns>Returns <see cref="System.Boolean"></see>.</returns>
387 <member name="P:System.Net.WebSockets.WebSocketReceiveResult.MessageType">
388 <summary>Indicates whether the current message is a UTF-8 message or a binary message.</summary>
389 <returns>Returns <see cref="System.Net.WebSockets.WebSocketMessageType"></see>.</returns>
391 <member name="T:System.Net.WebSockets.WebSocketState">
392 <summary>Defines the different states a WebSockets instance can be in.</summary>
394 <member name="F:System.Net.WebSockets.WebSocketState.Aborted">
395 <summary>Reserved for future use.</summary>
398 <member name="F:System.Net.WebSockets.WebSocketState.Closed">
399 <summary>Indicates the WebSocket close handshake completed gracefully.</summary>
402 <member name="F:System.Net.WebSockets.WebSocketState.CloseReceived">
403 <summary>A close message was received from the remote endpoint.</summary>
406 <member name="F:System.Net.WebSockets.WebSocketState.CloseSent">
407 <summary>A close message was sent to the remote endpoint.</summary>
410 <member name="F:System.Net.WebSockets.WebSocketState.Connecting">
411 <summary>The connection is negotiating the handshake with the remote endpoint.</summary>
414 <member name="F:System.Net.WebSockets.WebSocketState.None">
415 <summary>Reserved for future use.</summary>
418 <member name="F:System.Net.WebSockets.WebSocketState.Open">
419 <summary>The initial state after the HTTP handshake has been completed.</summary>