Page MenuHomePhabricator

[mock-chronik-client] Add support for txid ws subscriptions
ClosedPublic

Authored by bytesofman on Jun 16 2025, 13:21.

Details

Reviewers
emack
Group Reviewers
Restricted Project
Commits
rABC2c1faad7fa0e: [mock-chronik-client] Add support for txid ws subscriptions
Summary

mock-chronik-client supports websocket sub and unsub methods to support some test cases. Note that mock-chronik-client does not support all websocket features of chronik-client. It is mostly an elaborate stub so we can test things like "the function subscribes as expected."

It's important to match all the methods though so that the Classes (MockChronikClient and ChronikClient) are interchangeable in unit tests.

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable