I am using socket.io for a real time chat application. I am fairly new to socket.io and am running into a problem that has completely stumped me.
So, I have the real-time chat events working and firing back and fourth between users but not every time. The problem I am facing is that the chat events don't fire every single time I run the server. For example while the server is running, I make changes in my code and the web socket connection seems to stop working. Sometimes when I start the server for the first time in awhile it doesn't work so I will kill the server and start it again and it works perfectly.
I am having a very tough time with this as I cannot see a pattern of when it does not work.
Any suggestion on what could be happening?