Live view fallback with no websocket?

You can ditch the channel function, that was really to show where to initialize your app code. So all you need to do is check if you have yet to establish a connection on socket.onError, then disconnect and instantiate a new LiveSocket with the long poll transport.

2 Likes