-
Notifications
You must be signed in to change notification settings - Fork 700
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
How to know subscription state #3344
Comments
Hi @arnauddorgans - there unfortunately isn't any way to get the status of a single subscription. The current implementation is very naive with regards to it's implementation of subscribers. There is a list of subscribers keyed by an identifier with no state being stored about the subscriptions. I suppose if a subscriber identifier is in that list it could be considered 'open' but for identifiers that are not present we'd have no idea if that had even a valid identifier so it would be incorrect to return 'closed' when it could have been 'never existed'. There is probably a hacky solution we could implement to enable this for now but 2.0 is really where we'll improve everything networking.
|
Question
Hi
Is there a way to know the current state or listen to the state change of a subscription?
Sometimes, I feel that after a socket disconnection, there is a delay between the actual resubscription, and I would like to make sure that a specific subscription is currently listening or reconnecting, etc..
The text was updated successfully, but these errors were encountered: