=sse: multi events

This commit is contained in:
Miki 2023-12-20 13:31:38 +01:00
parent e23ad2cbf2
commit d9a1837f3b
12 changed files with 15 additions and 15 deletions

View file

@ -92,7 +92,7 @@ func HeadersMiddleware() gin.HandlerFunc {
func (e *Event) Stream(c *gin.Context) {
client := &Client{
Ip: c.ClientIP(),
Ip: c.Request.RemoteAddr,
Chan: make(ClientChan),
Events: c.QueryArray("events"),
}