I was looking at the wiki trying to understand how properties work.
I'm assuming they function the same for users, pipes, channels, etc.
I have  a question about this example.

var channel = Ape.getChannelByName('foochannel');
channel.setProperty('foo', 'bar');
channel.myprivate = {'my':'private'}; // Can be a string or whatever
you want
channel.pipe.sendRaw('FOORAW', {'John':'Doe'});

Ape.addEvent('beforeJoin', function(user, channel) {
        Ape.log('My private : ' + channel.myprivate);
});

channel.setProperty('foo', 'bar');                 is a public
property right?
channel.myprivate = {'my':'private'};            is a private channel?

I understand that private properties are on the server and not seen by
anyone.  My question is, when I set a public property, is value of
that property immediately propagated to all users who have access to
that information? In this case, a client using the javascript
framework be able to see that  channel.foo=bar after this code runs?
or only people who join the channel after the property is set.  Also,
is there a way to bind an event of a property change so that the user
knows if the property of a channel is changed?

Thanks,

Tyler

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