New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I use websocket #51
Comments
Please, try this: r := gin.New()
r.GET("/ws", func(c *gin.Context) {
handler := websocket.Handler(EchoServer)
handler.ServeHTTP(c.Writer, c.Req)
})
r.Run(":8080") |
@manucorporat, thanks! |
@manucorporat , after last update i try:
Log:
|
I have added the I don't want to double the work/headache for myself or the repo maintainer so I won't be making another fork to submit another pull request over a renamed function or two. If you wanna dig in, look here: The relevant parts are in: |
@manucorporat, push to master, so that "go get" would work |
Already merged in master ;) |
Hello! Thank you for cool framework!
I use
code.google.com/p/go.net/websocket
packageHow can I handle websocket with
gin
?The text was updated successfully, but these errors were encountered: