mirror of
https://github.com/statbate/special-pancake.git
synced 2026-08-11 03:12:42 +00:00
update
This commit is contained in:
parent
fd9906d0c1
commit
a95e549f4d
3 changed files with 33 additions and 7 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue