Hi!
I didn't test, but I think the server side code would be something like this:
Ape.registerCmd( "getcount", false, function(params, cmd) {
var num = Math.floor(Math.random()*100);
cmd.sendRaw("COUNT", {
"val": num,
"echo": params.ping
});
});
Note the usage ok quotes that looks inverted.
Do you have an error or it just do nothing?
- Louis
Le 2011-10-19 à 10:00, [email protected] a écrit :
> Ape.registerCmd( "getcount", false, function(params, cmd) {
> var num = Math.floor(Math.random()*100);
> cmd.sendRaw("COUNT", { val: "num",
> echo: params.ping
> });
> });
--
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/