You can always take the easy way out and just reload the page :)
On Oct 12, 2012 2:53 AM, "ecommy" <[email protected]> wrote:
> Hello UTAN, thank you for your answer.
>
> my issue is that I don't know what reinit code to put, I have something
> like this:
>
> =================================================================
> var client = new APE.Client();
> //load core
> client.load({'identifier':'myid'});
>
> client.addEvent('load', function() {
> client.core.start();
> });
>
> client.addEvent('ready', function() {
> client.core.join('c'+glb_uid);
> });
>
>
> //we received something
> client.onRaw('pushmsg', function(raw, pipe) {....
> =================================================================
>
>
>
> Thank you very much for any help you can provide
>
>
>
>
> On Thursday, October 11, 2012 2:34:27 AM UTC+3, UTAN wrote:
>>
>> Hi,
>>
>> When that happens you session is no longer valid and an onError '004'
>> is sent to the client, you can there reinitialize the session or make
>> it reload and get a new session...
>>
>> something like this:
>>
>> this.onError('004' , function(){
>> // reinitiate code here.
>> });
>>
>> On Oct 10, 12:07 pm, GarethK <[email protected]> wrote:
>> > Hi,
>> > I had a similar question. My app runs on iPhone & Android devices, and
>> when
>> > the user puts browser to background, or locks phone and goes back to
>> the
>> > app, I want to be able to detect if ape is still in request loop, and
>> if
>> > not, reload page or something
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > On Tuesday, September 11, 2012 9:28:43 AM UTC-4, Barak wrote:
>> >
>> > > Hello
>> >
>> > > I note that Clint lost connection to server and stop receiving
>> updates
>> > > from server after some time
>> >
>> > > can i handle this case and reconnect again
>> >
>> > > thanks
>>
> --
> 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 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/