If you're using jQuery, this is a really quick thing to add.
window.setInterval(function(){
$.get('website.tld/file.txt',
function(data){
$('#div-where-stream-goes').html(data);
}
);
},1000);
This will run once every second, which to me a little much. It could run every five seconds and wouldn't make that much of a difference for the user, and it would be less work on the browser. Just change 1000
to 5000
. I don't really like the idea of using a .txt file to get data from, but whatever floats your boat.