Websocket close codes.
More...
#include <WebSocketClient.hpp>
|
enum class | websocket_close_code : uint16_t {
unset = 1 << 0
, Normal_Close = 1 << 1
, Unknown_Error = 1 << 2
, Unknown_Opcode = 1 << 3
,
Decode_Error = 1 << 4
, Not_Authenticated = 1 << 5
, Authentication_Failed = 1 << 6
, Already_Authenticated = 1 << 7
,
Invalid_Seq = 1 << 8
, Rate_Limited = 1 << 9
, Session_Timed = 1 << 10
, Invalid_Shard = 1 << 11
,
Sharding_Required = 1 << 12
, Invalid_API_Version = 1 << 13
, Invalid_Intent = 1 << 14
, Disallowed_Intent
,
We_Do_Reconnect
, We_Do_Not_Reconnect = Authentication_Failed | Invalid_Shard | Sharding_Required | Invalid_API_Version | Invalid_Intent | Disallowed_Intent
} |
| Websocket close codes. More...
|
|
◆ websocket_close_code
Enumerator |
---|
unset | Unset.
|
Normal_Close | Normal close.
|
Unknown_Error | We're not sure what went wrong. try reconnecting?
|
Unknown_Opcode | You sent an invalid gateway opcode or an invalid payload for an opcode. don't do that!
|
Decode_Error | You sent an invalid payload to us. don't do that!
|
Not_Authenticated | You sent us a payload prior to identifying.
|
Authentication_Failed | The account token sent with your identify payload is incorrect.
|
Already_Authenticated | You sent more than one identify payload. don't do that!
|
Invalid_Seq | the sequence sent when resuming the session was invalid. reconnect and start a new session.
|
Rate_Limited | Woah nelly! you're sending payloads to us too quickly. slow it down! you will be disconnected on receiving this.
|
Session_Timed | Your session timed out. reconnect and start a new one.
|
Invalid_Shard | You sent us an invalid shard when identifying.
|
Sharding_Required | The session would have handled too many guilds - you are required to shard your connection in order to connect.
|
Invalid_API_Version | You sent an invalid version for the gateway.
|
Invalid_Intent | You sent an invalid intent for a gateway intent. you may have incorrectly calculated the bitwise value.
|
Disallowed_Intent | You sent a disallowed intent for a gateway intent. you may have tried to specify an intent that you have not enabled or are not approved for.
|
Definition at line 56 of file WebSocketClient.hpp.
The documentation for this class was generated from the following file: