mondora / asteroid

An alternative client for a Meteor backend
MIT License
734 stars 101 forks source link

Stopping a (global?) Subscription? #117

Closed aadamsx closed 7 years ago

aadamsx commented 7 years ago

There's a way to subscribe (only globally?):

// Use real-time collections asteroid.subscribe("tasksPublication");

But is there a way to stop?

let handler = Meteor.subscribe('items'); ... // subscription no longer necessary handler.stop();

davidebianchi commented 7 years ago

There is the unsubscribe method provided by thesubscriptions mixin. This is what you are searching?

aadamsx commented 7 years ago

Thank you!