Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are you able to call subs.subscribe("mySub").stop() ? #28

Open
rclai opened this issue Feb 6, 2015 · 4 comments
Open

Are you able to call subs.subscribe("mySub").stop() ? #28

rclai opened this issue Feb 6, 2015 · 4 comments

Comments

@rclai
Copy link

rclai commented Feb 6, 2015

No description provided.

@rclai rclai changed the title Are you able to subs.subscribe("mySub").stop() ? Are you able to call subs.subscribe("mySub").stop() ? Feb 6, 2015
@arunoda
Copy link
Contributor

arunoda commented Feb 6, 2015

No we can't do this. Since we cache many subs, it's hard to do this.
It's possible to do and need to find a better way to do it.

for now, try .clean and .refresh APIs. (check README)

On Sat Feb 07 2015 at 3:44:00 AM rclai notifications@github.com wrote:


Reply to this email directly or view it on GitHub
#28.

@thebarty
Copy link

Plus one for implementing a stop() command to stop a single subscription

@markshust
Copy link

Submitted a new PR for this so there are no conflicts with master. This seems to work great.
#83

usage:

const sub = subs.ready('my-sub');
subs.unsubscribe(sub);

cc @arunoda

@vladholubiev
Copy link

@markoshust Also #66 does the same

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

No branches or pull requests

5 participants