Thanks a lot Anthony, it works very well now. For sure as soon as I have something clean and stable I will share it with you.
Gianluca F. On 24 Mag, 18:07, Anthony Catel <[email protected]> wrote: > gfalas a écrit : > > > Hi all, I'm usingwebsocketconnection from an iPhone application, it > > seems that everything works fine. > > The only problem is that, when the client doesn't send any command for > > 45 secs (corresponding to the TIMEOUT_SEC) the APE server disconnects > > thewebsocket. > > > I would like to keep the connection alive also in this case, when the > > user is idle. I suppose I have to send a "dummy" command periodically > > to the server (let's say every 30 secs) in order to keep the > > connection alive. > > > My questions are: > > - are my sentences correct? > > - if yes, are there any predefined commands that I can use for this > > purpose? > > - could you suggest any other method to obtain the keepalive > > behaviour? > > > Thanks a lot and best regards > > Hi, > > Indeed, you need to send a "CHECK" cmd with the following pattern : > > {"cmd":"check","chl":42,"sessid":"abcd...."} > > Any other command containing the sessid is also considered as a "check". > > Btw, If you write a cocoa APE client, feel free to share it somewhere :) > > Anthony Catel. > > -- > 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 > athttp://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/
