Open gemann opened 6 years ago
The errors you're encountering are not "fatal" in an Rx sense, so the subscriptions are still active. You need to hold onto the Subscription objects and unsubscribe them manually, or else you'll get memory leaks like this.
Use this library its working fine, replace server url and port with your custom server url and your port. https://github.com/SayyedUmar/Stomp-Android-Client
After N unsuccessful attempts to connect and one successful attempt, library replies with N+1 messages - in this case there should only be one. It works fine when no problems with connection occur.
I used this as backend: https://spring.io/guides/gs/messaging-stomp-websocket/
Logs from an Android device:
StompManager:
MainActivity: