[Modify] Polish it
This commit is contained in:
parent
265c2a0221
commit
c9c6fdd7ad
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* The MIT License
|
* The MIT License
|
||||||
*
|
*
|
||||||
* Copyright (c) 2010-2014 sta.blockhead
|
* Copyright (c) 2010-2015 sta.blockhead
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
@ -31,33 +31,31 @@ using System;
|
|||||||
namespace WebSocketSharp
|
namespace WebSocketSharp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains the values of the state of the WebSocket connection.
|
/// Contains the values of the state of a WebSocket connection.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// The values of the state are defined in
|
/// The values of this enumeration are defined in
|
||||||
/// <see href="http://www.w3.org/TR/websockets/#dom-websocket-readystate">The WebSocket API</see>.
|
/// <see href="http://www.w3.org/TR/websockets/#dom-websocket-readystate">The WebSocket API</see>.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public enum WebSocketState : ushort
|
public enum WebSocketState : ushort
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Equivalent to numeric value 0.
|
/// Equivalent to numeric value 0. Indicates that the connection hasn't yet been established.
|
||||||
/// Indicates that the connection hasn't yet been established.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Connecting = 0,
|
Connecting = 0,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Equivalent to numeric value 1.
|
/// Equivalent to numeric value 1. Indicates that the connection has been established,
|
||||||
/// Indicates that the connection is established and the communication is possible.
|
/// and the communication is possible.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Open = 1,
|
Open = 1,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Equivalent to numeric value 2.
|
/// Equivalent to numeric value 2. Indicates that the connection is going through
|
||||||
/// Indicates that the connection is going through the closing handshake or
|
/// the closing handshake, or the <c>WebSocket.Close</c> method has been invoked.
|
||||||
/// the <c>WebSocket.Close</c> method has been invoked.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Closing = 2,
|
Closing = 2,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Equivalent to numeric value 3.
|
/// Equivalent to numeric value 3. Indicates that the connection has been closed or
|
||||||
/// Indicates that the connection has been closed or couldn't be opened.
|
/// couldn't be opened.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Closed = 3
|
Closed = 3
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user