Hello all,
Live View currently has a built-in retry and back-off mechanism for dealing with socket disconnections. While it has very sensible defaults for most cases, there is some utility in being able to change those parameters.
Some use cases I've already encountered include:
* using LiveView in an embedded device, where longer retry timings and an earlier failsafe trigger are helpful
* browser tests, where reconnection attempts can drastically decrease testing runtime
* developing over really lossy links, where faster reconnection attempts help mask some of the delays
* very large sites, where even the defaults are can be a bit aggressive
I've currently implemented this on a branch
here.
My feeling is that this is a relatively minor change. While a number of people will absolutely use it to shoot themselves in the foot, I believe that the benefits for people who actually need it outweigh the "learning experiences" that others will create for themselves.
Thanks,
—
Jayson Vantuyl