diff --git a/cmd/gwstester/tester.go b/cmd/gwstester/tester.go index c4a3c23..733469d 100644 --- a/cmd/gwstester/tester.go +++ b/cmd/gwstester/tester.go @@ -1,7 +1,6 @@ package main import ( - "bufio" "fmt" "net" "os" @@ -44,15 +43,13 @@ func manageClient(sock net.Conn) { for { - reader := bufio.NewReader(sock) - - _, err := request.Parse(reader) + req, err := request.Build(sock) if err != nil { panic(err) } + fmt.Printf("Upgrade Request: %v\n", req) break; - // sock.Write([]byte("coucou")) }