4 ms·
The JavaScript you described exists - it's called dojox.comet, and it looks like this: dojox.cometd.init('http://example.com/cometd' http://example.com/cometd'
by simonw 19y ago
The JavaScript you described exists - it's called dojox.comet, and it looks like this:
dojox.cometd.init('http://example.com/cometd' http://example.com/cometd');
dojox.cometd.subscribe('/channel', callback);
That's basically what you described, but with the additional concept of "channels" to make it easy to support lots of different event streams.
- simonw 19y agoI wrote more about this here: http://simonwillison.net/2007/Dec/5/comet/ http://simonwillison.net/2007/Dec/5/comet/