While playing around with my setup i notice that the pipe passed to the 
events in the client side is the pipe that the user client gets when the 
user initially joins the channel. 
So if a channel's property has been changed it wont be reflect it on the 
events callback, and fresh updated data is there is just not been use. In 
other words as of right now
is better to use the onRaw method then addEvent.

So instead of:

pipe.addEvent("userJoin", function(user, pipe){
console.log(pipe.properties.userCount);
});

A developer is better off using the RAW equivalent:

pipe.onRaw("join", function(raw){
var user, pipe;
user = raw.data.user;
pipe = raw.data.pipe;

console.log(pipe.properties.userCount); 
});

Now i think that having Events and RAWs in JSF is overfilling it, but that 
is just my humble opinion.


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