Comet and Jquery

Comet and jQuery

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.

Are there any jQuery functions or plugins for comet on apache?

If you are only doing long polling then jQuery will work fine. However, jQuery does not expose a readyState === 3 event, so there is no built in way to get data as it is streaming if that is the direction you want to go.

[Edit]
Here is the bug, #1172

And it looks like they added the functionality in 1.5, using a Prefilter

So yes, you can do all the comet stuff with jQuery now :)

jQuery and PHP - Comet

Can I Use on Web Sockets - Working Draft:


Partial support refers to the websockets implementation using an older
version of the protocol and/or the implementation being disabled by
default (due to security issues with the older protocol). Microsoft is
currently experimenting with the technology.

Sample Image

http://i.imgur.com/20X5z.png

The technology just isn't there yet. Watch this video from SymfonyLive if you want a better grasp on what the specs for HTTP and REST mean. It's interesting, and apparently Twitter goofed.

Also see:

http://en.wikipedia.org/wiki/Comparison_of_WebSocket_implementations

Comet, long polling with jquery tutorial

Here's a Comet tutorial using jQuery http://screenr.com/SNH

Code used in this tutorial

JQUERY COMET for Real-Time multi-user Note Taking

You can start by reading the etherpad source code here and looking into the APE project which is a Comet server that let's you code in javascript. It's very powerful and has a few nice examples.

jquery comet long polling and streaming tutorials?

It's not a question about the comet community, it's just that this is only half of the problem. You eventually need a comet client (such as jquery, dojo, or custom clients according to the server), but first you need a comet server to connect to (such as Jetty, WebSync, etc). Once you pick the server, you can then pick the client. If it's a Beayux client (such as the two servers mentioned) which is an open spec, then you can just plug in any client that supports that standard.



Related Topics



Leave a reply



Submit