tmeasday / meteor-presence

MIT License
44 stars 4 forks source link

I tested presence in production and I want to give some feedback #12

Open gabrielhpugliese opened 11 years ago

gabrielhpugliese commented 11 years ago

Hey guys,

I've used your package on production on http://coderstv.com yesterday and I've noticed some strange behaviour in my use case. I'm using the count of users in determined location of the page. For simplicity, suppose I'm publishing presences for everyone that are on / First, the code:

Template.channel.watchers = function () {
    return Meteor.presences.find({}).fetch().length;
};

And the html that prints it:

<span><i class="icon-user"></i> {{watchers}} watching</span>

I had a constant number of watchers of 20. But, sometimes it had shown 30-40 watchers for like 5 seconds and then go back to 20 and stays there for 1-2minutes. And it was a cycle. I just want to know why would that happen and where of the code is probably doing that behaviour, so I can debug it.

tmeasday commented 11 years ago

Is it possible this happened right after a hot code reload?

gabrielhpugliese commented 11 years ago

No. It was a live coding session during 1 hour aprox. And it was a cycle for all that long.

gabrielhpugliese commented 11 years ago

No ideas ? :(

tmeasday commented 11 years ago

A live coding session? What do you mean by this?

gabrielhpugliese commented 11 years ago

Oh lol. It's just my product. CodersTV is made for live programming broadcasts :+1:

tmeasday commented 11 years ago

Riight so the actual source of the running app wasn't what was being coded on?

If not then I have no ideas, but the source code of presence is pretty trivial if you want to debug through it.

gabrielhpugliese commented 11 years ago

Ok, I will put a lot of debugs in the source code to know what is exactly happening. Thanks man :)

Gabriel Pugliese CodersTV.com @coderstv

On Fri, Oct 11, 2013 at 12:03 AM, Tom Coleman notifications@github.comwrote:

Riight so the actual source of the running app wasn't what was being coded on?

If not then I have no ideas, but the source code of presence is pretty trivial if you want to debug through it.

— Reply to this email directly or view it on GitHubhttps://github.com/tmeasday/meteor-presence/issues/12#issuecomment-26110780 .

gabrielhpugliese commented 10 years ago

Hardest thing ever to debug! :cry: