We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am trying to use gin with gorilla/websocket:
func ServeSocket(c *gin.Context) { conn, err := websocket.Upgrade(c.Writer, c.Request, nil, 1024, 1024) if err != nil { http.Error(w, "Websocket error", 400) fmt.Println(err) return } }
But I am getting an error: websocket: response does not implement http.Hijacker.
websocket: response does not implement http.Hijacker
As I see, there is no Hijack method on c.Writer, maybe it should be added? Or please tell my how can I use it without changing gin code. Thanks.
gin
The text was updated successfully, but these errors were encountered:
Dup of #51
Sorry, something went wrong.
This #105 is my PR
No branches or pull requests
I am trying to use gin with gorilla/websocket:
But I am getting an error:
websocket: response does not implement http.Hijacker
.As I see, there is no Hijack method on c.Writer, maybe it should be added? Or please tell my how can I use it without changing
gin
code. Thanks.The text was updated successfully, but these errors were encountered: