Description
I'm experiencing a very strange bug that I can replicate in Firefox, Safari, and Chrome. Sometimes when I load my chat page, everything works ok. And sometimes, when I try to send a message through the web socket, I get:
"An error has occurred: Invalid data. Connection ### has disconnected."
If I keep refreshing the browser, and try sending a message, about 1/3rd of the time it will work, and once it does, everything is fine until I refresh again. If I refresh again though, it may very likely break again. Similarly, after another browser refresh, it might start working again. All of this is without making any changes on the server.
1.) The error message "Invalid data" doesn't really help with debugging.
2.) Sometimes it works, sometimes it doesn't, with seemingly no rhyme or reason to why.
Any thoughts?
Thank you,
-Eric