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/

Reply via email to