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

Stop Listen (Un-Listen) to a topic without disconnect #38

Open
JoshBenaya opened this issue Apr 18, 2018 · 0 comments
Open

Stop Listen (Un-Listen) to a topic without disconnect #38

JoshBenaya opened this issue Apr 18, 2018 · 0 comments

Comments

@JoshBenaya
Copy link

Hello all,

I want to ask about: how to stop Listen (Un-Listen) to a topic without disconnecting from the server?

I've tried to Unsubscribe the topic, but the 'Listen' function is not destroyed,
so when I Subscribe to the same topic again, I have two 'Listen' function listening to the same topic and when a message published into that topic, I got two message from that topic.
What I need is: I can stop the 'Listen' function when i Unsubscribe the topic, and Listen again when i Subscribe the topic.

Thank you!

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

1 participant