sacOO7 / socketcluster-client-java

Native java and android client for socketcluster framework in node.js
http://socketcluster.io/
Apache License 2.0
94 stars 42 forks source link

SocketCluster does not receive messages sent to channel #50

Open Risingmobi opened 5 years ago

Risingmobi commented 5 years ago

Hi. I am using OkHttp branch of SocketCluser. I have faced some very strange issue. I am launching Socket. In io.github.sac.BasicListener callback I am able to see that my connection is established and it is successful. The I am registering channel and subscribing to it. And here comes this issues. I am able to receive only two or three events, that were sent to the channel. And after that I am not able to receive any event. I can see that events are sent to the channel from backend but on my Android side they does not come to the channel. I cannot see any logs with errors from socket cluster, and it seems that it is working but for some reasonts doesn't receive any events. The only way to receive these events is to restart the app and connect to channel again. Could you help me please to solve this issue. I can provide my code where I am making connection to Socket