Skip to content

Commit

Permalink
Added 1002 and 1005 to auto-reconnect of relay
Browse files Browse the repository at this point in the history
  • Loading branch information
Sterling Long committed Jul 25, 2023
1 parent dbb2ea8 commit b05b59b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/apis/core/relay_client/relay_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,11 @@ class RelayClient implements IRelayClient {

// If the code requires reconnect, do so
if (code != null) {
if (code == 1001 || code == 4008 || code == 4010) {
if (code == 1001 ||
code == 4008 ||
code == 4010 ||
code == 1002 ||
code == 1005) {
await connect();
} else {
await disconnect();
Expand Down

0 comments on commit b05b59b

Please sign in to comment.