Hello

Ok, a continuation from my previous question:

I've got a contact list, then the user clicks on a name to start a
chat with another user, which then send a request to the server in the
form of a command which I have set up:

        Ape.registerCmd("PELICAN_START_CHAT", false, function(params, infos)
{

                if (params.fromuser){

                        // create a channel
                        var pipe = Ape.mkChan(new Date().getTime());

                        // make users into a mootools array
                        params.users = $A(params.users);

                        // add user to list
                        params.users.push(params.fromuser);

                        // tell users
                        Pelican.onlineusers.each(function(v,k){
                                if (params.users.contains(k)){
                                        v.sendRaw("JOIN_CHAT", { pipeid: 
pipe.getProperty('pubid') ,
users: params.users });
                                }
                        });

                }

        });

As you can see I'm making a channel - is this right? I'm assuming
channel is the server equivalent of a pipe on the user site?

Then on the client side, i'm catching the JOIN_CHAT raw, and calling

var pipe = ape.getPipe(data.data.pipeid);

However, pipe is null...

Any thoughts?

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