websotckty

This commit is contained in:
苏尹岚
2020-11-13 09:53:21 +08:00
parent 80392c74d5
commit aab7167e35
2 changed files with 8 additions and 3 deletions

View File

@@ -99,6 +99,9 @@ func (c *EventController) TestWebsocket() {
}
clientUser[userID] = ws
for _, v := range messageGroups {
if len(clients[v.GroupID]) > 0 {
}
clients[v.GroupID] = clientUser
}
db := dao.GetDB()