Hi,

I have always thought that the client side load() did not require to
send any data to the APE server. However, it seems that I am wrong.
The "load" event showing that APE core is loaded does not fire if the
APE server is down.

However, this seems to contradict all that I have read so far. This
example taken from APE doc implies the exact opposite:

//Initialize client
client = new APE.Client();
client.load({
    'domain': 'yourdomain.com',
    'server': 'ape.yourdomain.com',
    'baseUrl': 'yourdomain.com/APEJavaScript'
});


//Load event is fired when the client is loaded
client.addEvent('load', function() {
    console.log('APE is loaded');
    //Ok my client is loaded, now i can send data to my APE server

    //Connect to the APE server
    client.core.start();
});

//Init event is fired when the client is connected to APE server
client.addEvent('init', function() {
    console.log('APE is connected');
});


This difference is important to me, as I do not want to require the
user to have an Internet connection until it is really needed. So, I
understand that I need to load APE only when I want to do something
with the APE server, not as soon as my webpage is loaded.

This behaviour is all the more surprizing as my FF console does not
show any sign of anything being sent to the APE server before the
core.start() is called.

Do not be fooled as I was!

Hope this helps.

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