I recently came to know about COMET and how it can correspond to the client page without receiving a request from the page itself. But I was wondering what are the possibilities that arrives with this techniques, which is very efficient and easy in comparison to AJAX.
2 Answers
More and more chat web sites :-)
Now seriously, being part of the HTML5 specification, the WebSocket API allows servers to push data to the client. A big advantage for this is that clients will no longer need to continuously poll the server for updates, when updates are available servers will push data to the client and notify him for those updates, which would preserve bandwidth and allow more efficient applications. Modern browsers already support it. On the other hand an additional server is needed for handling the protocol.

- 1,023,142
- 271
- 3,287
- 2,928
-
Do you know of any efficient comet solution regarding Jquery? – Starx Dec 05 '10 at 11:03
-
You don't need jquery. The WebSocket API is [extremely easy](http://ajaxian.com/archives/legitimizing-comet-with-html-5-websocket). – Darin Dimitrov Dec 05 '10 at 11:05
Now its the time of comet.comet is reverse ajax.If you are using ajax in chat applications u need to check everytime for database updations but in the case of comet its all about server side events.We can set the certain events @server side then it will automatically update the webpage when the database is getting updated.that is we dnt need to give requests all the time.So that we can avoid the server headache due to large no.of requests and the application will be very much faster.
This is a live chat example using comet.check it out:www.zeitoun.net/articles/comet_and_php/start
its beyond ajax

- 373
- 4
- 14
-
Wow, a Copied answer from http://stackoverflow.com/questions/4357780/developing-chat-api-like-that-of-stackoverflow. Thank you – Starx Dec 05 '10 at 11:25