Skip to content

Commit

Permalink
improve echo example (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellflame authored Apr 24, 2021
1 parent c3dd95a commit e8629af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/echo/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -126,7 +127,7 @@ You can change the message and send multiple times.
<button id="send">Send</button>
</form>
</td><td valign="top" width="50%">
<div id="output"></div>
<div id="output" style="max-height: 70vh;overflow-y: scroll;"></div>
</td></tr></table>
</body>
</html>
Expand Down

0 comments on commit e8629af

Please sign in to comment.