Hi Nicolas,

Thanks.

Although, i haven't make the command test work :(

It always says 'UNKNOWN_CHANNEL' where there should be a channel...
but it seems that the channel is not created or the request from the
client side, did not reach sever.

I hope anyway can help me.

Here are the files

SERVER-SIDE:
ape.conf:
Server {
        port = 6969
        daemon = no
        ip_listen = 0.0.0.0
        ip_local = <actual IP here>
        domain = domain.net
        rlimit_nofile = 65536
}



CLIENT-SIDE

config.js:
APE.Config.baseUrl = 'http://dev.domain.com/storage/ape-test/ape-jsf/
Source';
APE.Config.transport = 2;
APE.Config.domain = 'domain.net';
APE.Config.server = 'ape.domain.net:6969';

demo.html:
var client = new APE.Controller({
  container: $('apeControllerDemo')
});

client.load({
  identifier: 'action',
  channel: 'testchannel'
});


test.php:
$messages = array(
        'Test Message',
        '<span style="color: #800">I\'m awesome!</span>',
        '<span style="color: #080">Hey, how are you doing?</span>',
);

$APEserver = 'http://0.ape.domain.net:6969';
$APEPassword = 'testpasswd';
$s = $APEserver.'/?'.rawurlencode('[{"cmd":"inlinepush","params":
{"password":"'.
$APEPassword.'","channel":"testchannel","raw":"postmsg","data":"'.rawurlencode
($messages[array_rand($messages)]).'"}}]');
$res = file_get_contents($s);
echo "{$s}<br/><br/>";
if ($res == 'OK POSTED') {
        echo 'Message sent!';
} else {
        echo 'Error sending message, server response is : <pre>'.$res.'</
pre>';
}



On Nov 9, 5:32 pm, Nicolas Trani <[email protected]> wrote:
> Hi Odie,
>
> APE 1.0 support JSONP transport. To enable it, on the client side in your
> config file just set
>
> APE.Config.transport = 2;
>
> Regards.
>
> On Sun, 8 Nov 2009 18:28:21 -0800 (PST), Odie <[email protected]>
> wrote:
>
> > Hi,
>
> > Just a follow up.
>
> > What I actually like todo is simple
> > Cross-Domain execution.
>
> > Is this possible to with this release?
> > If so, can anyone give me an example on how to implement it.
>
> > Thanks,
>
> > Odie
>
> > On Nov 8, 11:18 pm, Odie <[email protected]> wrote:
> >> Hi,
>
> >> I would like to know, if the v1.0 can handle multiple access domain to
> >> a 1 server setup.
>
> >> To elaborate:
>
> >> APE Server :  ape.domain1.com
>
> >> Clients:
> >> domain2.com - client that will access -> ape.domain1.com
> >> domain3.com - client that will access -> ape.domain1.com
>
> >> Would anyone know if this is possible.
>
> >> What I would like to do is to install the APE server on 1 server that
> >> can be accessed by different domains.
>
> >> Thanks,
>
> >> Odie
>
> --
> Nicolas Trani - R&D Web Engineer
> Weelya - Improve the web
> Tel : 04 67 169 778http://www.weelya.com/http://www.ape-project.org

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