Nimble Polyglot Microcosm

npm

Need private packages and team management tools?Check out npm Orgs. »

@projectriff/function-proto

0.0.6 • Public • Published

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.

install

npm i @projectriff/function-proto

Downloadsweekly downloads

8

version

0.0.6

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
Report a vulnerability