Skip to content

Commit

Permalink
Merge branch 'master' of github.com:maccman/juggernaut
Browse files Browse the repository at this point in the history
  • Loading branch information
maccman committed Sep 30, 2010
2 parents 821f98f + c49a17d commit 6f82406
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README
Expand Up @@ -109,6 +109,7 @@ Make sure they all connect to the same Redis instance. Use sticky sessions.

## Usage case - Group Chat

<script src="http://localhost:8080/application.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
var jug = new Juggernaut;
jug.subscribe("/chats", function(data){
Expand All @@ -122,6 +123,7 @@ Juggernaut.publish("/chats", params[:body])

## Usage case - Private Chat

<script src="http://localhost:8080/application.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
var jug = new Juggernaut;
jug.subscribe("/chats/<%= current_user.id %>", function(data){
Expand Down

0 comments on commit 6f82406

Please sign in to comment.