Skip to content
Demo of SSE and reloading with AC::Live
Ruby JavaScript CoffeeScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
test
vendor/assets
.gitignore
Gemfile
Gemfile.lock
README.rdoc
Rakefile
config.ru

README.rdoc

Demo of automatic reload with ActionController::Live

BrowserController is the control channel for the browser. When the page is loaded, application.js registers an SSE with the browser to watch /control. /control watches the filesystem for changes. Whenever a change happens on the filesystem, an SSE is sent to the browser, telling it to reload.

Something went wrong with that request. Please try again.