Skip to content

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

Description

@sudeeptarlekar

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions