Hello, thank you that fixed the syntax problem but now it seems as if the
server isn't receiving the raw: I ran the ape-server in daemon mode to make
sure it was loading here is the log:
[Module] [spidermonkey] Loading module : Javascript embeded (0.01) -
Anthony Catel
[JS] Loading script /var/ape/framework/mootools.js...
[JS] Loading script /var/ape/framework/Http.js...
[JS] Loading script /var/ape/framework/userslist.js...
[JS] Loading script /var/ape/utils/utils.js...
[JS] Loading script /var/ape/commands/proxy.js...
[JS] Loading script /var/ape/commands/inlinepush.js...
[JS] Loading script /var/ape/examples/nickname.js...
[JS] Loading script /var/ape/examples/move.js...
[JS] Loading script /var/ape/framework/objectPush.js...
and for the objectPush.js i think it was missing a semicolon at the end.
Ape.registerCmd("objectPush", true, function(params, infos) {
if ($defined(params.channel) && $defined(params.data)
&& $defined(params.raw)) {
var chan = Ape.getChannelByName(params.channel);
if (!$defined(chan)) return ["401",
"UNKNOWN_CHANNEL"];
chan.pipe.sendRaw(params.raw, params.data);
return {"name":"pushed","data":{"value":"ok"}};
} else {
return 0;
}
}) <----------------- I added a semicolon here not sure if it was
needed.
it is not even sending me a log so its as if the server isn't even recognizing
it. And if I'm not mistaken the channel param is set to the same value as
this join: this.core.join('testchannel');
Thank you for all your help!
--
--
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.