Slide 11
Slide 11 text
Foundation of early comet
techniques 2000/2006
var iframe = document.createElement('iframe');
iframe.style.display = 'none';
document.head.appendChild(iframe);
iframe.src = '/live-stream';
require('http').createServer(function (req, res) {
res.writeHead(200, { 'content-type': 'text/html' });
res.write(sendPadding());
setInterval(function () {
res.write(getLiveData());
}, 1000);
});