I do this just by having a list of friends on the client, and checking every join/leave on a global channel.
It uses more bandwidth by telling people that users are connected that you don't need to know about, but it's not really a big deal with hundreds or thousands of people. You could make a channel for each user, though, but then you have to use a lot more resources and code on the client to let htem know when friends are on instead of the client handling the friends. On Monday, April 9, 2012 8:56:49 AM UTC-4, Micael Ribeiros wrote: > > Im building a friends system on my website and Im wondering if I > should use a global channel, or one channel for each 2 users that are > friends. The down side of a global channel is that it would send data > between all the users without being needed (userjoin, userleft, > etc..), is there a way to configure a channel so it doesnt send > userjoin and userleft events to the client? > This may not be a big problem, but if I get more than 1000 users > connected there would be a lot of data being transfered them through > that "global" channel. > > Regards -- 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/
