Demo Sinatra app with Celluloid thread objects handling server-sent events
Ruby JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
public
views
.gitignore
.rbenv-version
Gemfile
Gemfile.lock
README.markdown
app.rb
celluloid_demo.rb
config.ru
debug_notes.txt
site.rb

README.markdown

Sinatra application with server-sent events

One set of Celluloid thread objects generates events. Another set of Celluloid thread objects pushes server-sent events. A demo page shows live event streams.

Tested on Linux/thin http/MRI Ruby 1.9.3p0/Firefox 7.01

thin --debug -R config.ru start

Demo page, if you are running the application

The demo page

Grab the code at github

Github Repo

Todo

  • Run on Windows/JRuby - Would like to use Trinidad
  • Test subscribers closing the event stream
  • Host on Heroku

Links