HomePhabricator

[chronik-client] Add timeout failure to ws connections

Description

[chronik-client] Add timeout failure to ws connections

Summary: In local testing, occasionally a ws will hang and fail to connect. In this case, we should try the next ws.

Test Plan:
npm test

I have used this while locally testing Cashtab and can confirm the timeout failures will cause failover proxy to use the next ws. We may want to tweak the timeout depending on behavior we see with apps.

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Subscribers: emack

Differential Revision: https://reviews.bitcoinabc.org/D15771

Details

Provenance
bytesofmanAuthored on Mar 23 2024, 21:49
bytesofmanPushed on Mar 24 2024, 13:40
Reviewer
Restricted Project
Differential Revision
D15771: [chronik-client] Add timeout failure to ws connections
Parents
rABCb9955626bd7b: [Cashtab] Clean up upgrade modal component
Branches
Unknown
Tags
Unknown