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

Commit

Permalink
Subscribe to private channel
Browse files Browse the repository at this point in the history
  • Loading branch information
dipth committed Dec 12, 2011
1 parent b624df0 commit 43f3bb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@

window.pusher = new Pusher(window.pusher_key);
window.broadcast_channel = pusher.subscribe('broadcast');
if (window.user_id)
window.private_channel = pusher.subscribe('private-user_' + window.user_id);

0 comments on commit 43f3bb6

Please sign in to comment.