0.0.6 • Published 6 years ago
@projectriff/function-proto v0.0.6
gRPC Node.js
Create node module wrapping function.proto
npm install --save @projectriff/function-proto
const { FunctionInvokerService, FunctionInvokerClient } = require('@projectriff/function-proto');
const grpc = require('grpc');
const address = '127.0.0.1:50051';
// server
const server = new grpc.Server();
server.addService(FunctionInvokerService, {
call(call) {
// TODO implement service
}
});
server.bind(address, grpc.ServerCredentials.createInsecure());
server.start();
// client
const client = new FunctionInvokerClient(address, grpc.credentials.createInsecure());
See the official gRPC for Node.js reference guide.
0.0.6
6 years ago
0.0.4
6 years ago
0.0.4-snapshot-5
6 years ago
0.0.4-snapshot-4
6 years ago
0.0.4-snapshot-3
6 years ago
0.0.4-snapshot-2
6 years ago
0.0.4-snapshot-1
6 years ago
0.0.4-snapshot
6 years ago