Hey guys,

I have problems with Ape running in a project.

To give you some insight, we use the Ape Server to handle the online status 
of users (users can be online, invisible, occupied or simply offline), to 
open popups at user-side when certain events happen without page-reload, 
and to send informations / events to the user without requiring them to ask 
for.

So when the user joins the Ape Server, we authenticate the user on our 
webserver, and then accept him. When the user reloads the page, or switches 
within the page, we try to restore the Ape session so that the connection 
does not need to be established again.

We are currently facing two problems:
1.) The client tries to restore a session and it seems like it worked, but 
there is no connection between user and Ape.
2.) After a certain while on the page, it seems like the connection between 
user and Ape breaks. After a while, the user is offline although he's still 
on the page.

For 1: We're restoring the session like this:
var opt = {'sendStack': false, 'request': 'stack'};
apeClient.core.start(
getApeUserInformation(), opt);

if (apeClient.core.options.restore) {
    console.log("..session will be Restored");
    apeClient.core.getSession(
        'currentPipe', function(response) {
    currentPipe = 
apeClient.core.getPipe(response.data.sessions.currentPipe);
    if (currentPipe) {
                apeClient.core.setSession({ 'currentPipe': 
currentPipe.getPubid() });
            }
}.bind(apeClient), opt);
}
apeClient.core.request.stack.send();


Has anyone experience with similar problems? Or an idea where I have to 
look for?

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

--- 
You received this message because you are subscribed to the Google Groups "APE 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to