You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, the SSE (Server-Sent Events) endpoint is /sse. But I want to use different endpoints like /xxxxx/sse or /yyyyy/sse, similar to how Gin handles routes like /:uid/sse.
I’d like to use server.WithSSEContextFunc(ctxFn) and pass in a custom function that can extract the xxxxx or yyyyy part from the http.Request. Based on that value, I will inject different information into the context (ctx) for further logic.