Node.jsがクライアントとしてgRPCのメソッドを呼び出したい場合は、
https://github.com/grpc/grpc-node
にてやり方を記載しておりますが、一番シンプルなClientのCallerとして、「grpc-caller」は便利だと思います。
「node-grpc-client」というツールも試しましたが、やはり「grpc-caller」ですね。
インストール
npm install grpc-caller
サンプル
const path = require('path')
const caller = require('grpc-caller')
const PROTO_PATH = path.resolve(__dirname, './protos/cassandra.proto')
const client = caller('localhost:50051', PROTO_PATH, 'Calendar')
client.getCalendar({ calendarId: '20191010abc' }, (err, res) => {
console.log(res)
})
以上