浏览代码

application fix

0x4a52466c696e74 4 月之前
父节点
当前提交
30893409d5
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      application/application.go

+ 1 - 0
application/application.go

@@ -49,6 +49,7 @@ func (s *Application) start(ctx context.Context) (err error) {
 		s.chConnect = make(chan rest.IStream)
 		ws := rest_websocket.New(s, s.conf.Core)
 		ws.Prepare(server, s.conf.GetWebsocketPrefix())
+		s.Sockets = NewSockets()
 		go s.work()
 		//log.Println("websocket engine prepared...")
 	}