Node.jsの中grpcクライアントのタイムアウトを設定する方法:私はコール期限オプションを提供します。この呼び出し形式で https://github.com/grpc/grpc/blob/master/examples/node/dynamic_codegen/greeter_client.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呼び出しがありません。 rpcsのストリーミング、タイムアウト、チャンネルの確保などの例をカバーする良いチュートリアルはありますか?