Is it possible to add a http transport fallback to the LiveSocket?

Is it possible to add a transport fallback to the LiveSocket? I wanted to evaluate a simple HTTP GET request to the params URL, no other state needed. The idea is to see if I can proxy this with a Service Worker. It makes sense in my case because all the dynamic parts are generated with a frontend framework.

Yes, there’s a built in long polling fallback that doesn’t depend on WebSockets: Phoenix.Socket — Phoenix v1.7.18

LiveSocket builds on top of Phoenix.Socket.

The project template when you create a Phoenix app with mix phx.new includes the fallback by default in recent versions:

Thanks, good indeed, long poll goes through HTTP. I will check what does the url look like and see. Merry Xmas.