ws update

This commit is contained in:
Gordon
2023-03-23 12:05:25 +08:00
parent 985fa74b34
commit d88c45c415
4 changed files with 16 additions and 3 deletions
+1
View File
@@ -23,6 +23,7 @@ func RunWsAndServer(rpcPort, wsPort, prometheusPort int) error {
return err
}
hubServer := NewServer(rpcPort, longServer)
longServer.SetMessageHandler(hubServer.Notification())
go hubServer.Start()
go hubServer.LongConnServer.Run()
wg.Wait()