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.
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 asubscribe
call. It is sufficient that, if a user adds a new handler, they have to callsubscribe
again. This should also be documented in the API.