摘要 |
In one aspect, method for bidirectional asynchronous data communication between a client and a server over the Internet via a hypertext transfer protocol based on a request/response paradigm is provided. With the aid of a single communication channel, a communication sequence is initiated by the client, such that the two partners are able to exchange data asynchronously and bidirectionally. After the client has established the connection via a request the client sends data to the server as a further request, while the server sends data to the client as a response to the last request. If the server has no data to send, then after a timeout time it sends a dummy response in order to keep the channel open. If the server receives a new request, then it terminates the old one and sends any data remaining to be sent as a response to the new request.
|