Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReconnectStrategy does not work #7

Open
opensourcegps opened this issue Nov 16, 2018 · 1 comment
Open

ReconnectStrategy does not work #7

opensourcegps opened this issue Nov 16, 2018 · 1 comment

Comments

@opensourcegps
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants