Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

The most simple realtime chat app you ever did see

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 views
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 sinatra-pusher.rb

Sinatra Pusher Example

This is an extremely simple application to demonstrate just how easy it is to integrate Pusher into your Ruby web applications.


Ensure you set your Pusher credentials in sinatra-pusher.rb and views/layout.erb.

bundle install
bundle exec thin start

Now open two browsers at localhost:3000. Type your messages and watch them appear realtime.


  • Why is this example so simple?
  • Why does your design suck?
  • Where is the rest of the code?
  • You suck!

This app is purposely simple. It's supposed to provide a developer with a working example of a realtime chat application with no overhead. Messages do not persist between requests because there are no storage mechanisms. It's up to the user to scale the most simple solution to match their needs.

Something went wrong with that request. Please try again.