0.1.4 • Published 10 years ago

grpc-client v0.1.4

Weekly downloads
5
License
MIT
Repository
github
Last release
10 years ago

grpc-client

example

var grpcClient = require('grpc-client');
var gc = new grpcClient({host:"localhost:50051",dir:'./',header:{custom:['customvalue']}});

gc.proto("helloworld")
  .sayHello({name:"xing"})
  .then(function(res){
    console.log(res);
  })
  .catch(function(err){
    console.log(err);
  })  

or  

gc.proto("helloworld")
  .call("SayHello")
  .send({name:"xing"})
  .then(function(res){
    console.log(res);
  })
  .catch(function(err){
    console.log(err);
  })

host is grpc server
dir is proto file folder
header is your custom matedata

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago