cespare / reflex

Run a command when files change
MIT License
3.35k stars 135 forks source link

Feature Request: Support for LiveReload Protocol? #78

Open ryanerwin opened 4 years ago

ryanerwin commented 4 years ago

Would be cool to implement in browser live reloading whenever reflex detects an update... The LiveReload protocol has already got a lot of nuances of browser reloading figured out and has been around for a long time. Here are some GoLang implementations.

Basic GoLang implementation of live-reload that exists:

https://github.com/omeid/go-livereload

For a server only version, there's:

https://github.com/jaschaephraim/lrserver

And Hugo (golang static site generator) has an implementation:

https://github.com/gohugoio/hugo/tree/master/livereload

There are live reload browser extensions for Firefox, Chrome

Reflex is so much faster than similar tools that I've tried... Would be amazing if it also supported this websocket based LiveReload... Almost like magic - bypassing the need to integrate LiveReload directly into applications!