HomePhabricator

[chronik-client] Improve organization of subscriptions in ws object

Description

[chronik-client] Improve organization of subscriptions in ws object

Summary:
When ws.subs was designed, only scripts could be subscribed to. Now we support blocks. Soon we will support tokens. And later could support plugins.

Organize all the subscriptions in subs. Change from array to typed object.

Update tests to match new type.

Note: this is a breaking change, but impact is expected to be minimal as in-node chronik is still rolling out.

Test Plan: CI

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

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

Details

Provenance
bytesofmanAuthored on Mar 4 2024, 22:04
bytesofmanPushed on Mar 6 2024, 17:23
Reviewer
Restricted Project
Differential Revision
D15630: [chronik-client] Improve organization of subscriptions in ws object
Parents
rABC6db98e815ffc: [token-server] Upgrade chronik-client to get latest types
Branches
Unknown
Tags
Unknown