1 // update the local timeline from a Comet server
4 var CometUpdate = function()
15 init: function(server, timeline, userid, replyurl, favorurl, deleteurl)
17 _cometd = $.cometd; // Uses the default Comet object
24 _deleteurl = deleteurl;
25 _cometd.subscribe(timeline, function(message) { RealtimeUpdate.receive(message.data) });
26 $(window).unload(function() { _cometd.disconnect(); } );