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

Get list/map of subscriptions #131

Closed
andrexus opened this issue Mar 4, 2024 · 2 comments
Closed

Get list/map of subscriptions #131

andrexus opened this issue Mar 4, 2024 · 2 comments

Comments

@andrexus
Copy link

andrexus commented Mar 4, 2024

I'm currently utilizing the GetSubscription(id string) method in the subscription client, which allows to retrieve a subscription by its ID. However, I'd like to propose a new feature that could enhance the functionality of the subscription client.

Could your consider adding a new method that returns a list or map of all subscriptions that have been registered by a client?

Use case:
The motivation behind this request is to improve error handling. When an error occurs, the OnError callback is triggered. I want to engage all subscription handlers and pass along the error. As it stands, I need to manually track all subscriptions because the subscription client doesn't reveal the underlying subscriptions map.

This proposed feature could streamline the process and enhance the efficiency of error handling.

@hgiasac
Copy link

hgiasac commented Mar 4, 2024

Make sense. I have exposed the method #132

@andrexus
Copy link
Author

andrexus commented Mar 4, 2024

Many many thanks!!!

@andrexus andrexus closed this as completed Mar 4, 2024
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

2 participants