Hi,
for now, when the property of an user change, this information is not
sent to other users (but it's planned). For now you have to handle it by
your own. The best way to handle it is to send a custom raw to all user
in the same channel. It's also the same for channels property, you have
to send a custom raw to inform all users on the channel.
Regards.
nouknouk wrote:
> Hi,
>
> let's say I have a channel 'chatChannel'. Each user has one 'public'
> property 'userState' automatically added by the server's javascript
> code when the user connects, with some code like:
>
> Ape.addEvent('adduser', function(user) {
> user.setProperty('userState','idle');
> });
>
> Now say the channel contains 100 users. The server decides to change
> the 'userState' of one user (say Peter) with some code like:
>
> peterUser.setProperty('userState', 'busy');
>
>
> 1/ I would like to know if both Peter and the 99 other users of the
> 'chatChannel' will be notified automatically that the 'userState'
> property of 'Peter' has been changed.
>
> - if so, how can I catch such event on client side ?
>
> - if not, what would be the way to do such thing ? By sending a custom
> RAW in 'chatChannel' or there is some 'built in' way of doing that ?
>
>
> 2/ I would have the same question for properties belonging to a
> channel rather than to a user (for example 'currentTopic' property
> for the 'chatChannel' pipe).
>
>
> Thanks in advance.
>
> Nouk²
>
>
--
Nicolas Trani - Web engineer
Weelya - Improve the web
32 rue du faubourg boutonnet
34090 Montpellier
Tel: 04 67 169 778 - Fax: 09 57 91 99 91
http://www.weelya.com
http://www.ape-project.org
--
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/