Browse Source

application fix

0x4a52466c696e74 4 months ago
parent
commit
30893409d5
1 changed files with 1 additions and 0 deletions
  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...")
 	}