XRPL-Labs/xrpl-client

The client will give up after one try when using tryAllNodes

Closed this issue · 3 comments

If all endpoints fail to get a connection when using tryAllNodes it will not try a second time. This occasionally happens in the Explorer when a cluster is under high congestion.

Steps to Reproduce

  1. Call new new
  XrplClient(['wss://google.com', 'wss://yahoo.com'], {
    tryAllNodes: true
  })
  1. Look at browser network tab you will see it gives up trying to make a connection. Once per endpoint.
  2. Set tryAllNodes to false
  3. Look at browser network tab you will see it will keep trying to connect.

That's currently as designed (try all, or fail) but it's not too hard to add retrying anyway. Will work on that.

Added in xrpl-client@2.0.2, published.

ec887f4

Fantastic!