Two options:

a) When a user joins a public channel, there is a message to everybody
that a user joind, containing his pubid. You can store this on the
client side along with the username (that's also what the demo does,
if I remember correctly)
b) Implement your own server side user handling, keeping track of
userid and pubid and thus create your own "sendMessageToUsername"
command on the server

Some examples code is here: http://www.xosofox.de/2010/10/ape-user-handling/



On 26 Jul., 11:11, carles <[email protected]> wrote:
> Hi!
> I'm trying to implement a chat for a website (like a social network)
> and I'm trying to do based on ape_real_time_chat. However, there is a
> difference between demochat and what I trying to do. On demochat,
> everybody is connected to a channel so it's easy to get its pubid and
> its pipe but on my web I don't want to use any channel (multipipe), I
> want to use unipipes only. For this reason, what I do is:
> - When login on the web, he connects to my APE server and gets a
> pubid.
> - That pubid is saved on my database.
> - User surf on web and looks for his friends' profiles and there is a
> link which have his friend's pubid which I get from database and ASP.
>
> So, here is the deal, I don't know how to connect with the other user.
> I have his pubid, but (I think) I need a pipe to connect with him with
> function: client.core.newPipe('uni', <pipe object>); I guess I could
> get it using client.core.getPipe(pubid) but my core don't have that
> pipe because I'm not using a common multipipe.
>
> I hope I explained well, my english is so bad...
>
> Thank's in advance.

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