0

So there are tons of examples alike to invoke server methods from client side using jQuery AJAX. Once the HTTP 1.1 connection keeps alive, the client send GET or POST request to receive the data as soon as possible. If connection is not alive, client recreates it and initiate the request. With an additional delay due to connection overhead or errors.

I'm looking for vice versa technics. In terms of C language — send() and recv() functions on server side when connection exists. Server sends data by the existing connection to the client (or all the clients connected by the time). The client catches data and updates/modifies its DOM.

Any jQuery AJAX example links, thoughts, restrictions or explanations, please.

UPD: The best option will be the simplest. Say, using CGI and jQuery methods, if possible.

4