ws update

This commit is contained in:
Gordon
2023-03-23 13:17:06 +08:00
parent c96d6b48d1
commit ac8a53b1b3
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -24,6 +24,9 @@ func RunWsAndServer(rpcPort, wsPort, prometheusPort int) error {
}
hubServer := NewServer(rpcPort)
go hubServer.Start()
if hubServer.Notification() == nil {
panic("notification is nil")
}
longServer.SetMessageHandler(hubServer.Notification())
hubServer.SetLongConnServer(longServer)
go hubServer.LongConnServer.Run()