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
Hi,
Just looking to add SSE to an existing project that uses the gin router.
I'm using the example here but when I swap the router for Gin, I'm getting the error: warning: unable to set write deadline for every sent message.
warning: unable to set write deadline
e.g.
router := gin.Default() api := humagin.New(router, huma.DefaultConfig("My API", "1.0.0"))
I notice this doesn't happen when using humago or humachi.
I can see that the error comes from this line here I think, but not sure what I'd need to do to fix that?
Is it because the gin context referenced in the adapter doesn't implement the SetWriteDeadline(time.Time) error function?
SetWriteDeadline(time.Time) error
Any thoughts greatly appreciated. Many thanks.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
Just looking to add SSE to an existing project that uses the gin router.
I'm using the example here but when I swap the router for Gin, I'm getting the error:
warning: unable to set write deadline
for every sent message.e.g.
I notice this doesn't happen when using humago or humachi.
I can see that the error comes from this line here I think, but not sure what I'd need to do to fix that?
Is it because the gin context referenced in the adapter doesn't implement the
SetWriteDeadline(time.Time) error
function?Any thoughts greatly appreciated.
Many thanks.
The text was updated successfully, but these errors were encountered: