I can't create a scroll from the "text / event-stream" data output to the div. Something that can do to correct this problem?
page.html
<!DOCTYPE html>
<html>
<head>
<style>
# out {
display: table;
width: 600px;
height: 600px;
text-align: center;
</style>
<script>
var source = new EventSource("/stream");
var mDiv = document.getElementByID('out');
source.onmessage = function(event) {
mDiv.scrollTop = 0
mDiv.innerHTML += event.data + "<br/>"
}
</script>
</head>
<body>
<div id="out"></div>
</body>
</html>