Documentation ¶
Index ¶
Constants ¶
View Source
const ( Heartbeat OpCode = 1 HeartbeatAck = 11 Identify = 2 InvalidSession = 9 Resume = 6 Dispatch = 0 StatusUpdate = 3 Reconnect = 7 Hello = 10 )
OpCode names
View Source
const ( UnknownError ResponseCode = 4000 UnknownOpcode = 4001 DecodeError = 4002 NotAuthenticated = 4003 AuthenticationFailed = 4004 AlreadyAuthenticated = 4005 InvalidSequence = 4007 RateLimited = 4008 SessionTimeout = 4009 InvalidShard = 4010 ShardingRequired = 4011 )
ResponseCode names
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResponseCode ¶
type ResponseCode int
ResponseCode is a type alias for websocket error codes
func (ResponseCode) String ¶
func (c ResponseCode) String() string
Click to show internal directories.
Click to hide internal directories.