pauldemarco / socketcluster_client

SocketCluster.io Client for Dart
BSD 3-Clause "New" or "Revised" License
12 stars 10 forks source link

ReconnectStrategy does not work #7

Open opensourcegps opened 5 years ago

opensourcegps commented 5 years ago

Trying to implement socket cluster in flutter. This client does not reconnect automatically.

ReconnectStrategy _strategy = new ReconnectStrategy(reconnectInterval: 3000, maxReconnectInterval: 3000, maxAttempts: 30);

var chat_socket = await Socket.connect('ws://192.168.1.90:8000/socketcluster/',
          strategy: _strategy,
          listener: new MyListener());

Am I missing something or this feature is not implemented?

When connection is lost, onDisconnected fires, but nothing else happens and connection is not restored automatically.

MichaelMarner commented 5 years ago

It has not been implemented