Browse Source

重连延迟

wr_202303
zsw 4 weeks ago
parent
commit
118336d76d
  1. 4
      lib/im/SocketClient.dart

4
lib/im/SocketClient.dart

@ -149,7 +149,9 @@ class SocketClient {
reconnect() { reconnect() {
dispose(); dispose();
connect(); Future.delayed(Duration(milliseconds: 3000), () {
connect();
});
} }
Map<String, Function(Message message)> callbacks = <String, Function(Message message)>{}; Map<String, Function(Message message)> callbacks = <String, Function(Message message)>{};

Loading…
Cancel
Save