zishang520/socket.io

how to use on echo web freamwork

ehsandavari opened this issue · 2 comments

how to use on echo web freamwork

Basically,

func main() {
      sockserver := socket.NewServer(nil, nil)
      e := echo.New()
.
.
.
.
       e.Any("/socket.io/", echo.WrapHandler(sockserver.ServeHandler(nil)))
}

I think it should be similar to go-gin. You can refer to it below: #34 (comment)