96
rated 0 times
[
100]
[
4]
/ answers: 1 / hits: 22163
/ 11 Years ago, fri, april 12, 2013, 12:00:00
I tried using presence
to make it display the total connected users in an element. I can't really figure out how to make it work.
I also tried doing the following:
var dataUlist = new Firebase('https://<url>.firebaseio.com/.info/connected');
dataUlist.on('value', function(snap) {
console.log(snap);
});
To tried to see if I could find anything useful in there, but I couldn't figure out how the data works.
Is there any way to accomplice what I am after? Fetch the total number of connected users and then echo it out in the console or to an element?
More From » firebase