mirror of
https://github.com/statbate/shiny-potato.git
synced 2026-08-11 03:12:42 +00:00
update
This commit is contained in:
parent
f2970c325c
commit
d42503ad10
5 changed files with 31 additions and 104 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue