Skip to content
This repository has been archived by the owner on Feb 9, 2019. It is now read-only.

Commit

Permalink
Initialize Pusher on client side and connect to public channel
Browse files Browse the repository at this point in the history
  • Loading branch information
dipth committed Dec 12, 2011
1 parent fbe0006 commit c8734c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@
//= require bootstrap-alerts
//= require jquery.gritter
//= require_tree .

window.pusher = new Pusher(window.pusher_key);
window.broadcast_channel = pusher.subscribe('broadcast');

0 comments on commit c8734c8

Please sign in to comment.