Thank you for your replies. Actually I am using the long polling not web 
sockets. I have all HTTP requests and classes implemented and they all work 
correctly except for one situation.
I have a problem synchronizing CHECK requests when no message is recived.

I have two queues for reqests (lets say A and B).
Firstly I schedule CHECK in queue A and schedule CHECK after 20secs in 
queue B.
Second CHECK gives CLOSE to queue A and in this queue I schedule another 
CHECK in 20 secs which yhan gives CLOSE to queue B and so on.

But after about 8 request for some unknown reason I recive answer 
BAD_SESSION_ID and I have no idea why.
I could post my code here if anyone could spare some time and try to help.

On Tuesday, June 29, 2010 2:46:44 PM UTC+2, stéphane Herraiz wrote:
>
> Hi, 
>
> I'm trying to make a APE client in Java (Android). 
>
> I'm connecting to the APE server using a CONNECT/JOIN command. 
> Then I send a CHECK cmd : 
> ["cmd":"CHECK","chl":3,"sessid":"34d2dd64e1bb3d1c17add2b216a87551"}] 
> I have put a socket timeout to 30s 
> When a message arrive I can read it but I never receive the CLOSE 
> raw : [{"time":"1277815119","raw":"CLOSE","data":{"value":"null"}}] 
> when no message is coming. I have a timeout. 
> What is wrong in my implementation? 
>
> Thanks a lot in advance 
>
> BR

-- 
-- 
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/d/optout.

Reply via email to