views:

79

answers:

3

Hi,

I know how to keep a connection indifinetely open server side to stream continuously data to javascript. BUT I do not know how to send data reusing the same TCP from browser to server. so there is not the 3 way handshake and only 2 tcp packets. I know it is possible but I do not how to do it : use xmlhttprequest? or script tag ajax ? can you tell me how to do it.

thank you very much

A: 

The best reference for you would be to read the Wikipedia entry on Comet.

Eric Hauser
comet is just for the streaming from server to browser. I need the other way from browser to server
zack
A: 

Zack, I have the same problem, did u find the answer?

Hidaet
yes you have to keep the connection open and listening server side
zack
A: 

How about using WebSockets.

ajay_whiz