-
Notifications
You must be signed in to change notification settings - Fork 1
/
consts.go
54 lines (48 loc) · 1.94 KB
/
consts.go
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
54
package rtm2
const (
// AreaCode Enum in RTMConfig
AreaCodeCN = 0x00000001
AreaCodeNA = 0x00000002
AreaCodeEU = 0x00000004
AreaCodeAS = 0x00000008
AreaCodeJP = 0x00000010
AreaCodeIN = 0x00000020
AreaCodeGLOB = 0xFFFFFFFF
AreaCodeOC = 0x00000040
AreaCodeSA = 0x00000080
AreaCodeAF = 0x00000100
AreaCodeKR = 0x00000200
AreaCodeHKMC = 0x00000400
AreaCodeUS = 0x00000800
AreaCodeOVS = 0xFFFFFFFE
// Connection State Enum in ConnectionEvent
ConnectionStateDISCONNECTED = 1
ConnectionStateCONNECTING = 2
ConnectionStateCONNECTED = 3
ConnectionStateRECONNECTING = 4
ConnectionStateFAILED = 5
// Connection State Change Reason in ConnectionEvent
ConnectionChangedReasonConnecting = 0
ConnectionChangedReasonJoinSuccess = 1
ConnectionChangedReasonInterrupted = 2
ConnectionChangedReasonBannedByServer = 3
ConnectionChangedReasonJoinFailed = 4
ConnectionChangedReasonLeaveChannel = 5
ConnectionChangedReasonInvalidAppId = 6
ConnectionChangedReasonInvalidChannelName = 7
ConnectionChangedReasonInvalidToken = 8
ConnectionChangedReasonTokenExpired = 9
ConnectionChangedReasonRejectedByServer = 10
ConnectionChangedReasonSettingProxyServer = 11
ConnectionChangedReasonRenewToken = 12
ConnectionChangedReasonClientIpAddrChanged = 13
ConnectionChangedReasonKeepaliveTimeout = 14
ConnectionChangedReasonRejoinSuccess = 15
ConnectionChangedReasonLost = 16
ConnectionChangedReasonEchoLost = 17
ConnectionChangedReasonClientIpAddrChangedByUser = 18
ConnectionChangedReasonSameUidLogin = 19
ConnectionChangedReasonTooManyBroadcaster = 20
ConnectionChangedReasonStreamChannelNotAvaliabled = 22
ConnectionChangedReasonLoginSuccess = 10001
)