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
Describe the bug When using the below code to use websocket connection
To Reproduce Steps to reproduce the behavior, if applicable:
The code is
package main import ( "github.com/gorilla/websocket" "gofr.dev/pkg/gofr" ) func main() { app := gofr.New() app.WebSocket("/ws", WSHandler) app.Run() } func WSHandler(ctx *gofr.Context) (any, error) { conn := ctx.GetConnectionFromContext(ctx) defer conn.Close() conn.WriteMessage(websocket.TextMessage, []byte("Hello, World!")) return nil, nil }
The error is
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Environments (please complete the following information):
More description Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
When using the below code to use websocket connection
To Reproduce
Steps to reproduce the behavior, if applicable:
The code is
The error is
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environments (please complete the following information):
More description
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: