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

Is there any method to check if subscription is present? #169

Open
sudeeptarlekar opened this issue Sep 18, 2020 · 1 comment
Open

Is there any method to check if subscription is present? #169

sudeeptarlekar opened this issue Sep 18, 2020 · 1 comment

Comments

@sudeeptarlekar
Copy link

sudeeptarlekar commented Sep 18, 2020

Right now when we call unsubscribe on stomp client, if subscription is not present client raises an error. So is there any way or method by which we can check if subscription is present before calling the unsubscribe method?

Sample code.

$ stomp_client.subscriber?('/topic/xyz') # or stomp_client.subscriber?('/queue/XYZ')
=> true # or false

If this sounds good idea then I can create quick PR.
Thoughts?

@gmallard
Copy link

At present what you are doing is the best that can be done.

Send the PR please.

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

Successfully merging a pull request may close this issue.

2 participants