=sse event

This commit is contained in:
Miki 2024-01-06 15:57:12 +00:00
parent c05c44a13e
commit 3b6df8946c
13 changed files with 176 additions and 102 deletions

View file

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