HomePhabricator

[Cashtab] [Chronik Websocket Notifications] [Part 1] Connect to websocket

Description

[Cashtab] [Chronik Websocket Notifications] [Part 1] Connect to websocket

Summary:
T2447

Part 1 of a stacked diff for moving incoming transaction notifications to chronik websockets.

This diff

  • Adds chronik-client and its dependencies
  • Adds a chronik connection URL to the app settings object
  • Implements websocket connection in useWallet.js, so that the connection function runs each time the user loads a new wallet

Test Plan:
npm start
Observe console.log statement matching the one in onConnect clause of initializeWebsocket function, "Chronik websocket connected"

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Subscribers: emack

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

Details

Provenance
bytesofmanAuthored on May 27 2022, 23:08
bytesofmanPushed on Jun 7 2022, 21:06
Reviewer
Restricted Project
Differential Revision
D11530: [Cashtab] [Chronik Websocket Notifications] [Part 1] Connect to websocket
Parents
rABC5fbd31594a7a: Use the DifferentialIndexedItemFormatter for the compact blocks
Branches
Unknown
Tags
Unknown