You are troubleshooting a Cloudflare issue (Error code 1006):
Check your account and logs or ask Cloudflare for help.
edit: also see:
A support tech confirmed to me via email that Cloudflare automatically disconnects websocket connections that remain dormant for 100 seconds.