Socket.io disconnect with ping timeout randomly
Problem
we have a real time chat application, that uses socket.io, node.js, mongodb etc. Chat is working very fine except one issue & that is as follows Some time in between while chatting user are getting disconnected with ping timeout. As I checked there was no problem with internet connection & also there is no logs on re-connection attempts. It directly gets disconnected. OS - Ubuntu 14.04/AWS EC2 socket.io version on server - 1.6.0 Node version - v0.10.25 Please let us know what could be the problem. Also let me know if you need any other details
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Socket.io disconnect with ping timeout randomly
Have you tried listening to any emitted error events? Here is a stack overflow article that contains a list of common events emitted by the socket.. http://stackoverflow.com/questions/24224287/list-of-socket-io-events
Trust Score
2 verifications
- 1
Have you tried listening to any emitted error events?
Here is a stack overflow article that contains a list of common events emitted by the socket..
- 2
http://stackoverflow.com/questions/24224287/list-of-socket-io-events
http://stackoverflow.com/questions/24224287/list-of-socket-io-events
Validation
Resolved in socketio/socket.io GitHub issue #2769. Community reactions: 1 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep