Hi,
You can set the transport type when you send the CONNECT command.
Search the wiki for the correct int value. (e.g. long polling =>
transport = 0) I have not tried any other transport type so I don't
know which response is sent back from the server.
Nathan Tran.
On 10/07/2011 10:42 PM, hari narayanan wrote:
Hi,
Thanks for the quick response... By default, it uses Long polling
right? is there a way i can make the server use something else instead
of long polling? If so, what will be the response to the SEND command
in that case?
Thanks
On Jul 10, 9:30 pm, Nathan Tran<[email protected]> wrote:
Hi Hari,
Assuming that you're using long polling a request must be kept open for
data to be streamed to the client when it's available. When sending a
SEND request you are essentially opening up another connection to the
server. There fore any previous request made to the server is then
CLOSED. LEFT raws are sent when ever a user disconnects from the
channel or he/she timed out.
Hope this helps.
Nathan Tran.
On 10/07/2011 10:26 PM, hari narayanan wrote:
Hi,
I understand that the format of send command is
[{"cmd":"SEND","chl":3,"params":{"msg":"Helloworld!","pipe":"" + sub1
+ "\"},"sessid":"" + sub + "\"}]
The response to this command is a bit weird. Sometimes, it sends me
back a raw called LEFT that contains users who left the channel.
Sometimes, it waits for 25s and the connection is CLOSED... Why does
this happen?
I need to understand why this happens
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/