This commit is contained in:
poiuty 2023-05-11 14:30:47 +03:00
parent f2970c325c
commit d42503ad10
5 changed files with 31 additions and 104 deletions

View file

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