diff --git a/example/echo/main.go b/example/echo/main.go index c18914b65190cadf5bad6ea84f5dd5fbdcf957cc..59fb45ec7b9f1f667730aa34b6520c3ac6c14acd 100644 --- a/example/echo/main.go +++ b/example/echo/main.go @@ -25,7 +25,7 @@ func main() { r.RegisterStruct("server", server) log.Println("running on 8855") - log.Println(http.ListenAndServe(":8855", codecs.HttpHandler(r))) + log.Println(http.ListenAndServe(":8855", codecs.HttpWebsocketHandler(r, []string{"*"}))) } type EchoServer struct {