Make writing Grpc Methods fun by using these handy wrappers
- Install
$ npm install --save kinesis-exchange/grpc-methods
- Require
const { GrpcUnaryMethod } = require('grpc-methods')
- Enjoy
const server = new grpc.Server()
server.addService(serviceDefinition, {
myMethod: new GrpcUnaryMethod(myMethod, '[myMethod]').register()
})