0
我指的是節點GRPC客戶端下面的示例中的超時: https://github.com/grpc/grpc/blob/master/examples/node/dynamic_codegen/greeter_client.js如何設置的Node.js GRPC客戶
//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調用。 有沒有一個很好的教程,其中涵蓋了流媒體,超時,保護頻道等例子?