Skip to content

ReconnectStrategy does not work #7

@opensourcegps

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.

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