While I am testing my real chat application on 3G mobile network (Slow internet connection),
Socket.io repeatedly disconnects then reconnects. I have logged the reason.
it says "xhr post error" which raise "transport error" then disconnect.
May I know what is the meaning of "xhr post error" and why this error appears in slow connection and how to solve the problem?.
I am using socket.io-client.java version 0.4.2
I think you should set
transportsat your client to use websockets.Try this:
Update Also, try to update your client library to 5.1+.