Skip to content

Commit

Permalink
Add handling for undocumented 1006
Browse files Browse the repository at this point in the history
  • Loading branch information
Exanlv committed Apr 24, 2024
1 parent 4d5ee34 commit cdd843e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Constants/GatewayCloseCodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class GatewayCloseCodes
1001 => 'Library instantiated: Reconnect required',
1003 => 'Library instantiated: Resume required',

1006 => 'Underlying connection closed',
4000 => 'Unknown error',
4001 => 'Unknown opcode',
4002 => 'Decode error',
Expand All @@ -33,6 +34,7 @@ class GatewayCloseCodes
1001 => false,
1003 => false,

1006 => false,
4000 => true,
4001 => false,
4002 => false,
Expand All @@ -53,6 +55,7 @@ class GatewayCloseCodes
1001 => true,
1003 => true,

1006 => true,
4000 => true,
4001 => true,
4002 => true,
Expand All @@ -73,6 +76,7 @@ class GatewayCloseCodes
1001 => false,
1003 => true,

1006 => false,
4000 => true,
4001 => true,
4002 => true,
Expand Down

0 comments on commit cdd843e

Please sign in to comment.