NaikSoftware / StompProtocolAndroid

STOMP protocol via WebSocket for Android
MIT License
597 stars 265 forks source link

After subscription to topic, unable to recieve data #194

Open ambishiva opened 3 years ago

ambishiva commented 3 years ago

val dispTopic = mStompClient!!.topic("/user/balance", subscribeHeaders) .subscribe({ it -> Log.d("Storm", "data") })

After subscription to topic I am not able to receive data. Data prints in the console but not prints here. Can you help me on this?

Nialit commented 3 years ago

Have a similar issue, but it receives messages right after connections, but then stops without notifying that a connection dropped

ambishiva commented 3 years ago

In my case it is not dropping. The messages are getting printing on the console for the topic which I subscribed, to handle this issue what I am did is that I made an emitter and pushed the data onto that emitter. After that I subscribed that emitter in my code and my problem got resolved.

sajon-cu commented 3 years ago

can any of you solve this problem? if so please help me