Skip to content

ReconnectStrategy does not work #7

Description

@opensourcegps

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions