Example of using socket.io with Sinatra.
First install these guys:
Done? Now paste this into the console:
git clone https://gist.github.com/6836825.git socket-io-sinatra-example
cd socket-io-sinatra-example
bundle install
npm install
foreman start
All good? Cake is waiting for you on localhost:4444, enjoy!