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

addSubscription / removeSubscription methods question #149

Open
@tadadev

Description

@tadadev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions