That helped. But I'm having the same problem again, I can't seem to
add a command called "listusers".
ape-server/scripts/commands/listusers.js:
Ape.registerCmd("listusers", false, function(params, infos) {
return 0;
});
[pma@240801-web1 ~]$ update_ape_server && start_ape
Initialized empty Git repository in /home/pma/ape-server/.git/
ERREUR: bind(6969) (non-root ?).. (src/sock.c line: 88)
[WARN] You have to run 'aped' as root to increase r_limit
_ ___ ___
/_\ | _ \ __|
/ _ \| _/ _|
/_/ \_\_| |___|
AJAX Push Engine
Bind on port 6969
Version : 1.00
Build : Dec 10 2009 20:26:31
Author : Weelya ([email protected])
[Module] [spidermonkey] Loading module : Javascript embeded (0.01) -
Anthony Catel
[JS] Loading script ../scripts/framework/mootools.js
[JS] Loading script ../scripts/framework/Http.js
[JS] Loading script ../scripts/framework/userslist.js
[JS] Loading script ../scripts/utils/utils.js
[JS] Loading script ../scripts/commands/proxy.js
[JS] Loading script ../scripts/commands/chat.js
[JS] Loading script ../scripts/commands/push.js
[JS] Loading script ../scripts/commands/listusers.js
[JS] Loading script ../scripts/boss/user.js
[JS] Loading script ../scripts/examples/move.js
[JS] Loading script ../scripts/utils/checkTool.js
ree-1.8.7-2010.02 > reload!
Reloading...
=> true
# Sending Command listusers returns BAD CMD
ree-1.8.7-2010.02 > APE.users
#<URI::HTTP:0x1038366f8 URL:http://novafist.com:6969?[%7B%22cmd
%22:%22listusers%22%7D]>
=> {"data"=>{"code"=>"003", "value"=>"BAD_CMD"},
"time"=>"1301906417", "raw"=>"ERR"}
ree-1.8.7-2010.02 > reload!
# But my other commands work fine.
Reloading...
=> true
ree-1.8.7-2010.02 > APE.users
#<URI::HTTP:0x103802b50 URL:http://novafist.com:6969?[%7B%22cmd
%22:%22push%22%7D]>
=> {"data"=>{"code"=>"001", "value"=>"BAD_PARAMS"},
"time"=>"1301906456", "raw"=>"ERR"}
ree-1.8.7-2010.02 >
Seriously am I missing or skipping a step?
On Apr 1, 5:46 pm, Anthony Catel <[email protected]> wrote:
> log doesn't exists.
> Ape.log should be better.
> I guess that you have a non-reported JS error in this line.
>
> Le 01/04/2011 11:38, Patrick Ma a crit :
>
>
>
>
>
>
>
> > ree-1.8.7-2010.02> APE.invite(1, "conversation_40")
> >http://mydomain.com:6969?[%7B%22cmd%22:%22add_user%22%7D]
> > => {"data"=>{"code"=>"003", "value"=>"BAD_CMD"},
> > "time"=>"1301650212", "raw"=>"ERR"}
>
> > ape-server/scripts/commands/add_user.js:
>
> > Ape.registerCmd("add_user", false, function(params, infos) {
> > log("params");
> > });
>
> > ape-server/scripts/main.ape.js:
>
> > Ape.addEvent("init", function() {
> > include("framework/mootools.js");
> > include("framework/Http.js");
> > include("framework/userslist.js");
> > include("utils/utils.js");
> > include("commands/proxy.js");
> > include("commands/chat.js");
> > include("commands/add_user.js");
> > include("boss/user.js");
> > include("examples/move.js");
> > include("utils/checkTool.js"); //Just needed for the APE JSF
> > diagnostic tool, once APE is installed you can remove it
> > //include("examples/ircserver.js");
> > //include("framework/http_auth.js");
> > });
>
> > What am I missing here....?
--
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/