Gottox / socket.io-java-client

Socket.IO Client Implementation in Java
MIT License
950 stars 387 forks source link

onConnect not called #53

Open volpino opened 11 years ago

volpino commented 11 years ago

Sometimes it happens that onConnect is never called even if the server received the WebSocket connection. Then if I disconnect and I connect again usually it works.

Any hint?

I'm using Android 4.2

shinayser commented 11 years ago

I have the same issue. I realized that making a "for" opening a lot of connections, sometimes one of them falls into onConnect and then i disconnect manually all the others. But this cause another hhuge problem. I don't know why, but the processing of the phone goes HUGE and completely destroys the battery, even after the socket disconnections. Someone knows how to solve that?