Template
1
0
Fork 0

This time for sure

This commit is contained in:
Atridad Lahiji 2024-05-14 20:41:45 -06:00
parent fae28be16f
commit 78133f6519
No known key found for this signature in database

View file

@ -87,6 +87,7 @@ func SetSSEHeaders(c echo.Context) {
c.Response().Header().Set(echo.HeaderContentType, "text/event-stream")
c.Response().Header().Set(echo.HeaderConnection, "keep-alive")
c.Response().Header().Set(echo.HeaderCacheControl, "no-cache")
c.Response().Header().Set("X-Accel-Buffering", "yes")
}
func HandleIncomingMessages(c echo.Context, pubsub pubsub.PubSubMessage, client chan string) {