This repository has been archived by the owner on Mar 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConnectionState.cs
53 lines (53 loc) · 1.6 KB
/
ConnectionState.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
namespace PusherClient
{
/// <summary>
/// An enum for describing the different states the Pusher client can be in
/// </summary>
public enum ConnectionState
{
/// <summary>
/// The initial state
/// </summary>
Uninitialized,
/// <summary>
/// The state after the Connection has been initialized
/// </summary>
Initialized,
/// <summary>
/// The state when the connection process has begun
/// </summary>
Connecting,
/// <summary>
/// The state when the connection process has completed successfully
/// </summary>
Connected,
/// <summary>
/// The state when the disconnection process has begun
/// </summary>
Disconnecting,
/// <summary>
/// The state when the disconnection process has completed, or the connection was dropped
/// </summary>
Disconnected,
/// <summary>
/// The state when a connection retry is in process
/// </summary>
WaitingToReconnect,
/// <summary>
/// The state when a connection is not currently connected
/// </summary>
NotConnected,
/// <summary>
/// The state when a connector is already connected
/// </summary>
AlreadyConnected,
/// <summary>
/// The state when a connector failed to connect
/// </summary>
ConnectionFailed,
/// <summary>
/// The state when a connector failed to disconnect
/// </summary>
DisconnectionFailed
}
}