websotckty
This commit is contained in:
@@ -97,10 +97,10 @@ func (c *EventController) TestWebsocket() {
|
||||
if len(messageGroups) == 0 {
|
||||
return
|
||||
}
|
||||
clientUser[userID] = ws
|
||||
for _, v := range messageGroups {
|
||||
clientUser[userID] = ws
|
||||
clients[v.GroupID] = clientUser
|
||||
}
|
||||
clients[v.GroupID] = clientUser
|
||||
db := dao.GetDB()
|
||||
if globals.IsProductEnv() {
|
||||
_, _, err = jxcontext.New(nil, c.GetString("token"), c.Ctx.ResponseWriter, c.Ctx.Request)
|
||||
|
||||
Reference in New Issue
Block a user