HomePhabricator

[Cashtab] [Cashtab] [final bch-api deprecation p5] Stop trying to reconnect to…

Description

[Cashtab] [Cashtab] [final bch-api deprecation p5] Stop trying to reconnect to bad websockets

Summary:
T2730, T2735

Depends on D12791

When chronik changes to a new URL, close the old websocket and stop trying to reconnect to it.

Test Plan:
npm start
Wait for API error
Wait for app to self correct to the right API
Note that the app stops trying to reconnect to the old websockets

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

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

Details

Provenance
bytesofmanAuthored on Dec 7 2022, 14:56
bytesofmanPushed on Dec 8 2022, 03:53
Reviewer
Restricted Project
Differential Revision
D12792: [Cashtab] [Cashtab] [final bch-api deprecation p5] Stop trying to reconnect to bad websockets
Parents
rABC8903518541ac: [Cashtab] [Cashtab] [final bch-api deprecation p4] Refactor tryNextApi function…
Branches
Unknown
Tags
Unknown