Ok, So I use the join event in Client side , when User login this user receives all the user logged in the chat...
So as many users are logged he receives this many as joined, this is not good for me because the user just joined and he doesnt want know the other users joined... User needs to know when someone join when he is already in the application, the join event send himself and all other in the channel... This behavior occurs when you refresh and or when you login for first time.. So what I want its to know when the user object is only one and not an array of users objects, and since some objects doesn't a length properties I cant test if this is a single user joining or all of the users already logged in.. sorry my English inst the best to explain this.. On May 1, 10:45 am, Pablo Tejada <[email protected]> wrote: > I still dont get it, code? > > Sent from my iPhone > > On May 1, 2012, at 1:37 PM, UTAN <[email protected]> wrote: > > > > > > > > > Pablo, > > > Thanks, now should I send the raw from afterjoin event or same join > > event in server side, wouldn't that be the same as waiting the join > > event in Client side, if refresh or login for the first time I will > > receive all the raws as the users logged in...? > > > Thought the same way but I was hopping someone to know how to check > > when the join event has a list of users and not only one... > > > will check it out. > > > On May 1, 8:43 am, Pablo Tejada <[email protected]> wrote: > >> Here is a pointer, you receive all users in a channel raw. Try this > > >> client.onRaw("channel", function(raw, pipe){ > >> console.log(raw.data.users) > >> //OR, not sure > >> console.log(raw.data.pipe.users) > > >> } > > >> Sent from my iPhone > > >> On Apr 30, 2012, at 7:25 PM, UTAN <[email protected]> wrote: > > >>> Hi, > > >>> So I have my application working fine, but I have a bit of trouble > >>> with the userjoin event , I am using Ape session when I login Ape > >>> server send the users connected with usejoin event, that to build the > >>> user list.. > > >>> Now what happen is that use that event to pass a user join text to all > >>> connected users, but when I login I get the messages as the amount of > >>> user in the chat, > > >>> how can I determine when I am receiving not only one user object but > >>> all the user connected?... > > >>> I've somehow eliminated to tell myself that I logged in like this > > >>> this.core.user.properties.name != user.properties.name > > >>> If I check the user.length its undefined because I am checking an > >>> object.. > > >>> if I had the length propertie I could just test > > >>> if(user.length == 1) joinedUser(); > > >>> That way I know is only user that is joining and not all of them > >>> because I refreshed the page or I joined the chat.. and I am getting > >>> all user at once.. > > >>> Hope you understand what I mean. > > >>> -- > >>> 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/ > > > -- > > 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/ -- 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/
