T
TanStack2w ago
useful-bronze

SSE behind Cloudflare

I tried using SSE in my collections by adding liveSse: true to my shape options when building my collections. I had some issues once I deployed to prod with it though - I'm behind Cloudflare and I noticed collections getting slow/not updating for a while before everything came through at once. Is it expected to work behind the CF proxy?
4 Replies
useful-bronze
useful-bronzeOP2w ago
some more context: CF points at a VPS running Caddy and my app, Caddy just reverse proxies my app. I added flush_interval: -1 but it didn't seem to make a difference
wise-white
wise-white2w ago
Also on the latest version of the electric client we detect some sse problems and fall back to long polling
useful-bronze
useful-bronzeOP2w ago
I'll get back to you soon on this one, I need to set up a dev server behind cloudflare to test this

Did you find this page helpful?