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?
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 theunsubscribe
method?Sample code.
If this sounds good idea then I can create quick PR. Thoughts?