-
-
Notifications
You must be signed in to change notification settings - Fork 232
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
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.
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?
Any thoughts greatly appreciated.
Many thanks.
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested