for Rails
Ruby JavaScript gem

This is very basic implementation of api subset on top of


Add the gem to your Gemfile and run the bundle command to install it.

gem ''

Run the generator to create the initial files.

$ rails g

Next, start up

$ node

For production

$ NODE_ENV=production node

Add the JavaScript file to your application.js file manifest.

// require

See docs for Redis config. Make your changes in

Easy SSL support. Just add ssl_key and ssl_cert paths to your env in config/

    ssl_key: "/path/to/server.pem"
    ssl_cert: "/path/to/certificate_chain.pem"


Include pusher io tags in your html head:

<%= pusher_io_tags %>

Browser side

var channel = pusher.subscribe('notifications');
channel.on('alert', function(data) {

// or use bind
channel.bind('alert', function(data) {

Server side

Pusher::IO[:notifications].trigger 'alert', 'hello'


  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request