【发布时间】:2017-10-05 16:03:54
【问题描述】:
我指的是以下 node-grpc 客户端示例: https://github.com/grpc/grpc/blob/master/examples/node/dynamic_codegen/greeter_client.js
//create a client
var client = new hello_proto.Greeter('localhost:50051',
grpc.credentials.createInsecure());
//issue the call
client.sayHello({name: user}, function(err, response) {
console.log('Greeting:', response.message);
});
在这种通话格式中,我在哪里提供通话截止日期选项。
另外,https://grpc.io/grpc/node/ 的 jsdoc 从来没有这种 API 调用。 是否有一个很好的教程,其中涵盖了流 RPC、超时、保护通道等示例?
【问题讨论】:
标签: javascript node.js grpc