var ws = new WebSocket("ws://" + location.host + "/ws")

ws.onmessage = function (event) {
    console.log(event.data)
    $("#events").append("<p>" + event.data + "</p>")
}

var ws = new WebSocket("ws://" + location.host + "/ws")

ws.onmessage = function (event) {
    console.log(event.data);
    $("#events").append("<p>" + event.data + "</p>");
    $("#events").scrollTop($("#events")[0].scrollHeight);
}

Add nasty jquery scroll to bottom
Add nasty jquery scroll to bottom
