> If you're using channels there is a userslist 
> property.http://www.ape-project.org/docs/server/channels/userslist.html
>
> So you can get the number of users on a channel with
> channel.userslist.getLength()
>

Hi, sorry for my question, but i'm really new to APE (it's
fantastic!), just 1 days looking at it...
I have this little script and it work very well:

var client = new APE.Client();
client.load();
client.addEvent('load', function() {
        client.core.start({"name":
Math.floor(Math.random()*110000000).toString()});
});
client.addEvent('ready', function() {
        console.log('Your client is now connected');
        client.core.join('testChannel');
});
client.addEvent('multiPipeCreate', function(pipe, options) {
        pipe.send('Hello world!');
        console.log('Sending Hello world');

});
client.onRaw('data', function(raw, pipe) {
    console.log('Receiving : ' + unescape(raw.data.msg));
});


i have tryed  with the example on this mage but it doesn't work for
me.

I also tryed this code inside the ready event:

client.core.users.each(function(user) {
        console.log("okkk");
});

Why i can see in firebug the users object but this code doen't work?

Sorry for my english i hope you can understand.

Thank you very much.

Nicola

-- 
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