-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Multiple subscription to topics #20
Comments
The issue lies in the 'StompClientLib' class, subscribe to destination header should have 'StompCommands.commandHeaderDestinationId' header with a unique value per subscription. |
Hello @abhaytambe I'm going to solve it in a week, thank you so much for feedback :) Also, remember that always welcome to PR :) |
Hi WrathChaos! I changed above mentioned line in StompClientLib.swift file to this : |
Hello @abhaytambe, |
Looks like the client fails to subscribe successfully to multiple topics. We receive a 1002 error code back on subscribing to the second topic.
i.e. Let's say, we have two topics to subscribe to, 'Topic ABC' and 'Topic DEF'. The client subscribes to topic 'Topic ABC' successfully, but we get a 1002 error back and the connection closes as soon as I subscribe to 'Topic DEF'. If we reverse the order of subscription, then the client subscribes to topic 'Topic DEF' successfully but fails while subscribing to second topic 'Topic ABC'.
This clearly confirms that there is an issue while subscribing to more than one topics
The text was updated successfully, but these errors were encountered: