HI,

I've a tricky problem with custom command and I can't find where it
comes from.
I've followed the custom commands tutorials and build a custom
commands on the server side

Ape.registerCmd("SEND_HASH", true, function(params, infos) {
 Ape.log("Received SEND_HASH");

 var pipe = Ape.getPipe(params.pipe);
 if (!$defined(pipe)) return ["4400", "WHERESTHEPIPE"];

 pipe.sendRaw('HASH_DATA', params);
 return 1;
})


on the sending side it is
pipe.request.send('SEND_HASH',{'month':'july'});


I know that on the server side, the params object contains the month
attribute because Ape.log(params.month) shows it.
but when I catch the message on the client side, I don't get anything
on raw.data.month, it's empty.

If I change the server side command to pipe.sendRaw('HASH_DATA',
{'month':params.month}); then a retrieve the month on the client side.
What am I doing wrong ? :-S

Thanks a lot
Léo

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