So i have setup Server Side Events which uses a keep-alive connection to the server for a sustained period of time. Works fine locally, no issues. I pushed to production a few weeks ago (prod is behind cloudflare) and after a period of time I get a 520 error, which I understand is specific to Cloudflare.
The client will reconnect only for this to keep happening after several minutes. I outlined my issues on stack overflow where I posted screenshots etc.
I tried to disable CloudFlare on the URL per my screenshot below but this didn’t resolve the issue. I don’t know how I can prevent this happening. Appreciate your help.