koush/android-websockets — pull request #32 by gimenete (2014-04-10 19:38:12+00:00)
Title: Reconnecting

Maybe I didn't understand the usage of the library or I am missing something. But reconnecting wasn't working for me at all. I tried these scenarios:

* The socket.io server is down. Try to connect and see if it tries to reconnect.
* The socket.io sever is running. Try to connect. Once connected shut down the server and see if it tries to reconnect.

I digged into the code and just changing that line of code made it work in both scenarios. Indeed it works really well for me now.

Thanks for this great library.