Skip to content
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

After subscription to topic, unable to recieve data #194

Open
ambishiva opened this issue Jan 16, 2021 · 3 comments
Open

After subscription to topic, unable to recieve data #194

ambishiva opened this issue Jan 16, 2021 · 3 comments

Comments

@ambishiva
Copy link

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
Copy link

Nialit commented Feb 3, 2021

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

@ambishiva
Copy link
Author

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants