We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46be8dc commit b5355deCopy full SHA for b5355de
internal/examples/echo/server.go
@@ -30,7 +30,7 @@ func (s echoServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
30
}
31
defer c.CloseNow()
32
33
- s.logf("new incoming connection: %s", c.RemoteAddr())
+ s.logf("new incoming connection: %s", c.RemoteAddr().String())
34
35
if c.Subprotocol() != "echo" {
36
c.Close(websocket.StatusPolicyViolation, "client must speak the echo subprotocol")
0 commit comments