Skip to content

Commit

Permalink
fix: improve fasthttp echo example
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Andres Virviescas Santana committed Dec 29, 2021
1 parent b60d673 commit c524ef6
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions _examples/echo/fasthttp/server.go
@@ -1,3 +1,10 @@
// Copyright 2015 The Gorilla WebSocket Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build ignore
// +build ignore

package main

import (
Expand Down Expand Up @@ -83,7 +90,7 @@ window.addEventListener("load", function(evt) {
var d = document.createElement("div");
d.textContent = message;
output.appendChild(d);
output.scroll(0, output.scrollHeight);
output.scroll(0, output.scrollHeight);
};
document.getElementById("open").onclick = function(evt) {
Expand Down Expand Up @@ -130,8 +137,8 @@ window.addEventListener("load", function(evt) {
<body>
<table>
<tr><td valign="top" width="50%">
<p>Click "Open" to create a connection to the server,
"Send" to send a message to the server and "Close" to close the connection.
<p>Click "Open" to create a connection to the server,
"Send" to send a message to the server and "Close" to close the connection.
You can change the message and send multiple times.
<p>
<form>
Expand Down

0 comments on commit c524ef6

Please sign in to comment.