Best way to implement Socket.io in android
问题 I am planning to implement Socket.io in android by this library for a chat based application. As far as I understood the library seems to be pretty good. I want to know how to maintain a single socket connection throughout the app all the time? Here I have listed out ways to achieve, in which I need the best and stable way. Three ways MainApplication Class extends Application By this we have a good scope that the socket connection is maintained in the main thread ( or application's life cycle