Have websocketconn.New return a pointer.

This makes the return type satisfy the io.ReadWriteCloser interface
directly.
This commit is contained in:
David Fifield 2020-01-28 02:37:10 -07:00
parent e47dd5e2b4
commit 20ac2029fd
4 changed files with 5 additions and 5 deletions

View file

@ -66,7 +66,7 @@ func (handler *StubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
//dial stub OR
or, _ := net.DialTCP("tcp", nil, &net.TCPAddr{IP: net.ParseIP("localhost"), Port: 8889})
proxy(or, &conn)
proxy(or, conn)
}
func Test(t *testing.T) {