Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Comet and jQuery [closed]

I've done some research into server push with javascript and have found the general consensus to be that what I'm looking for lies in the "Comet" design pattern. Are there any good implementations of this pattern built on top of jQuery? If not, are there any good implementations of this pattern at all? And regardless of the answer to those questions, is there any documentation on this pattern from an implementation stand-point?

like image 247
willurd Avatar asked Sep 25 '08 20:09

willurd


4 Answers

I wrote the plugin mentioned by Till. The plugin is an implementation of the Bayeux protocol and currently supports long-polling (local server via AJAX) and callback-polling (remote server via XSS). There is a Bayeux implementation for Python called cometd-twisted that I have heard my plugin works with, but I have not verified this. I have tested and verified it works with cometd-jetty and erlycomet which has a jQuery Comet example included. There is more info on my blog and the current code with a basic chat example can be found on its google code page. Hope this info is helpful and feel free to contact me if need any further help with the plugin.

like image 176
Morgan ARR Allen Avatar answered Oct 27 '22 03:10

Morgan ARR Allen


Someone built a client for Comet using jQuery. I don't know if it's any good though. I've read about Comet and heard about all the good it can do, but I have never gotten around to using it. Just had no time and no use case on any of my current projects.

I totally forgot to add a link as for implementing comet.

There is Comet Daily and they have a comparison online. The comparison emphasizes on maturity of the different implementation. It's pretty interesting and should get you started.

Hope that helps!

like image 32
Till Avatar answered Oct 27 '22 04:10

Till


Check out the Ape Project for a complete client and server side solution that implements the comet pattern.

like image 26
Devon Avatar answered Oct 27 '22 05:10

Devon


A description of the pattern: http://ajaxpatterns.org/HTTP_Streaming

like image 7
Jonathan Tran Avatar answered Oct 27 '22 03:10

Jonathan Tran