There's not built in way to get a list of users or get a user based on his 
nickname. You need to manually built a list of pubid associated with the 
nicknames in a javascript object. You can do this using the << onJoin >> event.

Something like this (Should be many examples on the Google Group) :

client.addEvent('userJoin', function(user, pipe) {
                
                //Add the new user to the object                
                userlist[user.properties.name] = user.pubid;
            });

  - Louis

Le 2014-07-30 à 12:13, Mina Adel <[email protected]> a écrit :

> yes this what i need but i dont know how to get a user's pubid (the user i 
> need how i know the user to get hi pubid ?? nickname? ?)
> again thx for your fast reply and you helped me much.
> 
> 
> On Wed, Jul 30, 2014 at 6:04 PM, Louis Charette <[email protected]> 
> wrote:
> You could send directly to a user using it's pubid (they are listed in the 
> channel object or sent during onJoin event I think), but it's much simpler 
> using a "dummy" channel as the channel will handle connection/de connection 
> events. 
> 
> Envoyé de mon iPhone
> 
> Le 2014-07-30 à 11:24, Mina Adel <[email protected]> a écrit :
> 
>> 
>> 
>> Simply make the two users join a new channel (named "channel_user1_user2" 
>> for example) and the rest is the same as if the channel was public. 
>> 
>> Envoyé de mon iPhone
>>    
>> 
>> First thx for your fast reply.. and is there any other way without multi 
>> channel ? 
>>  
>> 
>> -- 
>> -- 
>> 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 unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> 
>> For more options, visit https://groups.google.com/d/optout.
> 
> 
> -- 
> -- 
> 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 a topic in the Google 
> Groups "APE Project" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/ape-project/deck13iW3_U/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
> 
> 
> -- 
> -- 
> 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 unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to