diff --git a/examples/echo/server.go b/examples/echo/server.go index 2f5305fa..61f3dd9b 100644 --- a/examples/echo/server.go +++ b/examples/echo/server.go @@ -69,6 +69,7 @@ window.addEventListener("load", function(evt) { var d = document.createElement("div"); d.textContent = message; output.appendChild(d); + output.scroll(0, output.scrollHeight); }; document.getElementById("open").onclick = function(evt) { @@ -126,7 +127,7 @@ You can change the message and send multiple times. -
+