BAD_SESSID

29 views
Skip to first unread message

Fighting Man

unread,
May 24, 2012, 10:27:28 AM5/24/12
to APE Project
I just change the controller demo,change the registerCmd the second
param to true,and the ape report a error,this:

Error sending message, server response is :
array(1) {
[0] =>
class stdClass#1 (3) {
public $time =>
string(10) "1337912070"
public $raw =>
string(3) "ERR"
public $data =>
class stdClass#2 (2) {
public $code =>
string(3) "004"
public $value =>
string(10) "BAD_SESSID"
}
}
}

who can solve this problem, also i want to ask you a question that: I
want to send a message to the one of all the connector ,how can I do?

Fighting Man

unread,
May 24, 2012, 10:30:27 AM5/24/12
to APE Project
the erro is an array , have been use var_dump on it

Fighting Man

unread,
May 24, 2012, 10:35:51 AM5/24/12
to APE Project
yep,just change inlinepush cmd ,this:
Ape.registerCmd("inlinepush", <b>true</b>, function(params, infos) {
if (params.password == Ape.config("inlinepush.conf", "password")) {

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;
}
} else {
return ["400", "BAD_PASSWORD"];
}

})


On May 24, 10:27 am, Fighting Man <gianja...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages