This commit is contained in:
2025-07-04 23:41:19 +08:00
parent 7c2c32a31a
commit f0fd00d706
27 changed files with 1206 additions and 163 deletions

View File

@@ -4,6 +4,7 @@ import (
"common/discover/common"
"common/net/grpc/service"
"common/proto/gen/grpc_pb"
"gateway/handler/ws_handler"
"google.golang.org/grpc"
)
@@ -25,6 +26,7 @@ func NewServer(ttl int64) *Server {
}
func (s *Server) OnInit(serve *grpc.Server) {
ws_handler.GatewaySID = s.SID
grpc_pb.RegisterGatewayServer(serve, s)
}