Skip to content
This repository was archived by the owner on Apr 17, 2019. It is now read-only.

addSubscription / removeSubscription methods question #149

Open
tadadev opened this issue Aug 12, 2015 · 0 comments
Open

addSubscription / removeSubscription methods question #149

tadadev opened this issue Aug 12, 2015 · 0 comments

Comments

@tadadev
Copy link

tadadev commented Aug 12, 2015

In MeteorClient.m, removeSubscriptions: returns immediately if it's not okay to send. But in addSubscription: it first adds to the _subscriptions and _subscriptionsParameters dictionary before checking if it's okay to send.

In the case of no connection, after calling addSubscription:
-This ends up allowing for a later callback for a subscription that shouldn't exist (when connection is established).
-Or if removeSubscription: is called, it still allows for the callback (when connection is established).

Please let me know if I am/not reading this correctly. This scenario is causing my callback to function when I wouldn't think it would, since it's not allowing me to remove the subscription.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant