We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 262dbeac authored by Evan Prodromou's avatar Evan Prodromou

Some updates for testing Comet

parent 056d0a25
......@@ -69,8 +69,6 @@ class Bayeux
$oReturn = json_decode($data);
common_debug(print_r($oReturn, true));
if (is_array($oReturn)) {
$oReturn = $oReturn[0];
}
......
This diff is collapsed.
// update the local timeline from a Comet server
//
var updater = function()
{
var _handshook = false;
var _connected = false;
var _cometd;
return {
init: function()
{
_cometd = $.cometd; // Uses the default Comet object
_cometd.init(_timelineServer);
_cometd.subscribe(_timeline, this, receive);
$(window).unload(leave);
}
}
function leave()
{
_cometd.disconnect();
}
function receive(message)
{
var noticeItem = makeNoticeItem(message.data);
var noticeList = $('ul.notices');
}
}();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment