perun-network / erdstall-ts-sdk

TypeScript client SDK to interact with Erdstall.
Apache License 2.0
5 stars 2 forks source link

Make `subscribe` aware of set handlers #53

Closed sebastianst closed 2 years ago

sebastianst commented 3 years ago

subscribe currently subscribes to both, receipts and balance proofs. It should only subscribe to what handlers are set for. For the time being, we don't require it to be smart enough to add subscriptions if any handler is set after a subscribe call. It is sufficient that, if a user adds a new handler, they have to call subscribe again. This should also be documented in the API.

RmbRT commented 2 years ago

Duplicate of #142