Created
April 9, 2018 17:54
-
-
Save yuriatgoogle/dce946f4c817b98661f0786132e3cad8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// make grpc call to grpc server - localhost on port 50051 | |
var client = new hello_proto.Greeter('localhost:50051', grpc.credentials.createInsecure()); | |
var user; | |
if (process.argv.length >= 3) { | |
user = process.argv[2]; | |
console.log("user is " + user); | |
} else { | |
user = 'world'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment