我想获取gRPC中服务器的所有方法(gPRC方法名)的列表。我在NodeJS gRPC引用中找不到用于获取gRPC方法列表的方法或属性- https://grpc.io/grpc/node/grpc.Server.html。我该怎么做呢?谢谢)
发布于 2018-05-31 12:54:43
const Service = grpc.load(protoPath).examplePackage.exampleService;
// your methods:
const methods = Object.keys(Service.prototype);我从here那里得到了解决方案
https://stackoverflow.com/questions/46954418
复制相似问题