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 <[email protected]> wrote:
> 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?

-- 
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/

Reply via email to