Flotype / now

NowJS makes it easy to build real-time web apps using JavaScript
http://www.nowjs.com
MIT License
1.91k stars 175 forks source link

Feature request: Don't call if group size is 0 #178

Open jeffchan opened 12 years ago

jeffchan commented 12 years ago
group.now.distribute(msg);

throws a reference error when group size is zero, which leads to this rather annoying fix:

group.count(function(num) {
    if (num > 0) {
        group.now.distribute(msg);
    }
});

I propose that the RPCs simply get skipped if group size is 0.

steveWang commented 12 years ago

I can't reproduce this.