1
0
mirror of https://github.com/labstack/echo.git synced 2025-03-23 21:29:26 +02:00

fixing websocket recipe

This commit is contained in:
Chase Hutchins 2015-07-12 15:41:46 -07:00
parent 3c917b4c11
commit f9a7f46edc

View File

@ -1,6 +1,8 @@
package main
import (
"fmt"
"github.com/labstack/echo"
mw "github.com/labstack/echo/middleware"
"golang.org/x/net/websocket"
@ -24,7 +26,7 @@ func main() {
if err = websocket.Message.Receive(ws, &msg); err != nil {
return
}
println(msg)
fmt.Println(msg)
}
return
})