-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
unsubscribe on disconnect() and/or __destruct() #131
Comments
|
@staabm doing house-keeping. Is this still an issue you are experiencing or would like to discuss? |
we worked arround it on our end. I think it could be still a problem |
Ok, I'm still making my way through the STOMP specification and the code, but I think you were suggesting that on a I don't think this is a problem per se, as the server is not even required to deliver any But it doesn't mean it wouldn't be a nice feature. It does appear that the use of a while (is_a($client->getState(), 'Stomp\States\ConsumerState')) {
$client->getState()->unsubscribe();
} to loop through and unsubscribe from all the subscriptions. |
the main point IMO would be to automatically unsubsribe on
I did not yet have a look into the details. In our solution we unsubscribe all previous subscriptions manually... thats kind of suboptimal atm on our end |
shouldn't one of the client classes keep track of all subscriptions and unsubscribe all subscriptions to cleanup server side state?
we assume this is a problem.. we realized that subscriptions don't get cleaned up because see some consumers don't disconnect from the queue point of view... not sure this is our actual problem, but I figured it would be worth noting/discussing.
The text was updated successfully, but these errors were encountered: