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

Fixed WsClient forever retrying to initialize() issue #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

oliverbytes
Copy link

@oliverbytes oliverbytes commented Dec 5, 2021

Closes #1

This added a max retry feature where it returns false when it reaches the maximum retries.

Also added a setConfig() function for WsClient and set optional default values. Example usage for setConfig() below

final zenon = Zenon();

zenon.wsClient.setConfig(
      url: 'ws://peers.zenon.network:35998',
      maxRestarts: 5,
      maxTimeouts: 5,
      pingIntervalDuration: const Duration(seconds: 5),
      timeoutDuration: const Duration(seconds: 5),
      restartDelayDuration: const Duration(seconds: 5),
);

@oliverbytes oliverbytes marked this pull request as ready for review December 5, 2021 02:33
interstellartraveler77 pushed a commit that referenced this pull request Jul 20, 2023
Fix needed for WC to transmit blocks between dApp and wallet
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

Successfully merging this pull request may close these issues.

WsClient.initialize() never returns when retry=true and while it fails to connect
1 participant