A tiny demo using the Faye WebSocket implementation.
Within the Nitrous console, clone the repo and navigate into the folder.
git clone git git@github.com:nitrous-examples/ruby-websockets.git
cd ruby-websockets
Next, run the following commands to run the app:
bundle install
bundle exec ruby app.rb
In the menu, navigate to Preview > Port 4000
. Change the port in the
address bar to 5000
and you will see the demo app running.
Credits for this demo go to /heroku-examples. View their repo for information on deploying to Heroku.