websotckt
This commit is contained in:
@@ -97,7 +97,7 @@ func (c *EventController) TestWebsocket() {
|
|||||||
for _, v := range messageGroups {
|
for _, v := range messageGroups {
|
||||||
clients[v.GroupID] = append(clients[v.GroupID], ws)
|
clients[v.GroupID] = append(clients[v.GroupID], ws)
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debugf("clients map : %v", utils.Format4Output(clients, false))
|
||||||
db := dao.GetDB()
|
db := dao.GetDB()
|
||||||
if globals.IsProductEnv() {
|
if globals.IsProductEnv() {
|
||||||
_, _, err = jxcontext.New(nil, c.GetString("token"), c.Ctx.ResponseWriter, c.Ctx.Request)
|
_, _, err = jxcontext.New(nil, c.GetString("token"), c.Ctx.ResponseWriter, c.Ctx.Request)
|
||||||
|
|||||||
Reference in New Issue
Block a user