Hello, finally i found this solution, what do you think about it?

function userlist()
{
        for(var user in client.core.users)
     {
        if(typeof(client.core.users[user])=='object' && user!='$family')
        {
                console.log('pubid:' + user + " - username:" +
client.core.users[user].properties['name']);
        }
     }
}

client.addEvent('userJoin', function(user,pipe){
        userlist();
});
client.addEvent('userLeft', function(user,pipe){
        userlist();
});

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to