Reputation: 39201
I'm logging disconnects in my web game. It seems 75% of the sessions are getting disconnected with the code 1001 (normal) and 25% are getting disconnected with the code 1006 (error). https://www.rfc-editor.org/rfc/rfc6455
Sometimes on the error reason I see this text:
CloudFlare WebSocket Proxy restarting
But he majority of 1006 disconnects don't give any reason at all. The players just disconnect with no reason at all. This usually happens at 5-30 minutes mark while the player is actively playing the game.
The setup I'm has these:
My question is:
Upvotes: 5
Views: 13287
Reputation: 39201
The reason for this specific error is because Cloudflare updates software or configuration of their SSL, Firewall, Nginx, physical servers.
Almost any stack in their system being updated will kick out your websockets. You have 2 solutions:
Upvotes: 7