=sse: multi events
This commit is contained in:
parent
e23ad2cbf2
commit
d9a1837f3b
12 changed files with 15 additions and 15 deletions
|
@ -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"),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue