Hi everyone,
I am starting to learn thing around APE, which by the way look amazing
the piece of software you have made..
I am playing with the demo chat, and I want to make a new command as
the instruction states you have to edit or create a file in /var/ape/
commands/myNewcommand.js..
include the js file above stated
include("commands/myNewcommand.js");
in the js file called main.ape.js
then reload or restart the APE server..
in the this mentioned file there is a test Cmd that I want to run for
learning purpose.
Ape.registerCmd('foo', true, function(params, cmd) {
cmd.user.sendRaw('bar', {
hello: 'world',
echo: params.ping
});
On the client side I am getting a response back with the following
info after I run it with
the following command this.core..request.send('foo', {ping: 'ho
hey'});:
[{"time":"1325221031","raw":"ERR","data":{"chl":
44,"code":"003","value":"BAD_CMD"}}]
then the client is disconnected from server...
Now I dont know what I am doing wrong that my custom cmd is not being
loaded in the server js.. can anyone please tell me whats the correct
procedure to register a Cmd on the server side...
thank you and Happy New Year..
regards utan
--
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/