The "user" var should have the pipe info already in it? (Ex.: user.pipe)

  - Louis

Le 2012-07-14 à 18:41, Auryn a écrit :

> Hi everybody ! :)
> 
> So i'm trying to return a raw to the users of the channel when an user leave 
> and i've this code :
> 
> Ape.addEvent("deluser", function (user) {
>       if ($defined($application.users[user.getProperty("ID")])) {
>       var setPosition = new Http("http://mywebsite.fr:80/APE-setPOSITION="; + 
> user.getProperty("ID") + "-" + $application.users[user.getProperty("ID")].x + 
> "-" + $application.users[user.getProperty("ID")].y + ".html");
>       
>               setPosition.getContent(function (resultat) {
>                       var pipe = 
> Ape.getPipe($application.users[user.getProperty("ID")].pipe);
>                       if (!$defined(pipe)) return ["4400", 
> "WHERE_S_THE_PIPE"];
>               
>                       $application.users[user.getProperty("ID")] = '';
>               
>                       pipe.sendRaw('deletePlayer', {
>                               'id': user.getProperty("ID")
>                       });
>               });
>       }
> });
> 
> When an user connects himself to my application the server-side save the 
> "params.pipe" of the command in "$application.users[id_of_user].pipe" and I 
> try to return a raw with this pipe to the other users in the channel.
> But it don't work.
> I send a log on my application to know if the raw "deletePlayer" is return 
> but it isn't.
> 
> How can I do ? :o
> 
> Thanks very much for your help ! ^^
> 
> P.S : Sorry for my english, I'm french. ^^
> 
> -- 
> 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