These take a WsEndpoint object from ChronikClient.ws, and subscribe to / unsubscribe from the requested type of updates from the Agora plugin.
Details
- Reviewers
bytesofman - Group Reviewers
Restricted Project - Commits
- rABCc0adb402e89c: [ecash-agora] Add `subscribeWs` and `unsubscribeWs`
npm run integration-tests
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- ecash-agora-subscribe-to-ws
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 30474 Build 60466: Build Diff ecash-agora-integration-tests · ecash-agora-tests Build 60465: arc lint + arc unit
Event Timeline
modules/ecash-agora/tests/oneshot.test.ts | ||
---|---|---|
214 | are you just writing these kinds of methods as you go along? I've found managing these integration tests pretty complicated, usually all kinda gotchas. then I come across diffs like this and it's like "uh yeah well why didn't you just listenNext(), obv" 🤔 |
modules/ecash-agora/tests/oneshot.test.ts | ||
---|---|---|
214 |
technically this is a function
oh yeah, here it took me quite a while to figure out why my WS subscription didn't go through (didn't await waitForOpen), or why my event wasn't being sent to my EventEmitter (listener has to be registered first)... so this stuff doesn't solve the complexity but makes it a bit easier to work with |