We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a683331 commit bc99696Copy full SHA for bc99696
app/lib/services/sockets/pure_socket.dart
@@ -122,7 +122,7 @@ class PureSocket implements IPureSocket {
122
'Authorization': await getAuthHeader(),
123
},
124
pingInterval: const Duration(seconds: 20),
125
- connectTimeout: const Duration(seconds: 30),
+ connectTimeout: const Duration(seconds: 10),
126
);
127
if (_channel?.ready == null) {
128
return false;
@@ -132,6 +132,8 @@ class PureSocket implements IPureSocket {
132
dynamic err;
133
try {
134
await channel.ready;
135
+ } on TimeoutException catch (e) {
136
+ err = e;
137
} on SocketException catch (e) {
138
err = e;
139
} on WebSocketChannelException catch (e) {
0 commit comments