This commit is contained in:
poiuty 2023-05-11 13:52:11 +03:00
parent fd9906d0c1
commit a95e549f4d
3 changed files with 33 additions and 7 deletions

View file

@ -56,10 +56,14 @@ func announceCount() {
rooms.Count <- 0
l := <-rooms.Count
msg, err := json.Marshal(struct {
Count int `json:"count"`
}{Count: l})
Chanel string `json:"chanel"`
Count int `json:"count"`
}{
Chanel: "chaturbate",
Count: l
})
if err == nil {
ws.Send <- msg
socketServer <- msg
}
}
}