This commit is contained in:
poiuty 2023-05-14 13:53:05 +03:00
parent 51ebbd9a8b
commit c22576a6bf
3 changed files with 29 additions and 25 deletions

View file

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