maccman/juggernaut — Issue #98: Singleton subscription ?
Author: Sephi-Chan
Created: 2011-10-12 22:37:00+00:00
State: open

Hi,

I was wondering how to implement some kind of singleton subscription. Example:

``` Coffeescript
$('body').delegate '#new_participation a', 'ajax:success', (event, data)->
channel = "games/#{data.game.id}/joins"
juggernaut.subscribe(channel, (data)->
console.log("Data received...", data)
```

The problem : after each event, a new subscribtion is created and the log is called many times.

I believe this need is really common so, do you care if I send a pull request to add it?

Romain