What is the best approach to test if an APE server is up and running,
by the client side?

And second question on that subject, what's the best way to stop APE
from the request loop?

After from some help on IRC I currently have this:

var client = new APE.Client();
client.load({
        'channel': 'test',
        'identifier': 'testdemo',
        'connectOptions': {'name': 'user' + $random(0, 1234567890)},
        'pollTime': 2000 // for testing purpose
});
client.addEvent('load', function(){
        (function(){
                //client.core.quit();
                client.core.rawQuit();
                console.log('quit');
        }).delay(1500);
});

When using JSONP, client.core.quit(); only falls back to 25000ms, but
doesn't stop the request loop. client.core.rawQuit(); does
successfully stop the loop, is that supposed behaviour? Is there a
better way?

Thanks in advanced
eni

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