cespare / reflex

Run a command when files change

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: Support for LiveReload Protocol?

ryanerwin opened this issue · comments

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!