From 5a61e57d9aa0f5c55c6b4dedde9cae5134b87f73 Mon Sep 17 00:00:00 2001 From: Mitch Kelley Date: Sat, 10 Nov 2018 08:38:16 -0500 Subject: [PATCH] update node docs to use addService --- docs/quickstart/node.md | 2 +- docs/quickstart/php.md | 2 +- docs/tutorials/basic/node.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/quickstart/node.md b/docs/quickstart/node.md index a8f1ee4f..fc2775b2 100644 --- a/docs/quickstart/node.md +++ b/docs/quickstart/node.md @@ -127,7 +127,7 @@ function sayHelloAgain(call, callback) { function main() { var server = new grpc.Server(); - server.addProtoService(hello_proto.Greeter.service, + server.addService(hello_proto.Greeter.service, {sayHello: sayHello, sayHelloAgain: sayHelloAgain}); server.bind('0.0.0.0:50051', grpc.ServerCredentials.createInsecure()); server.start(); diff --git a/docs/quickstart/php.md b/docs/quickstart/php.md index 1eab92e3..28625733 100644 --- a/docs/quickstart/php.md +++ b/docs/quickstart/php.md @@ -400,7 +400,7 @@ function sayHelloAgain(call, callback) { function main() { var server = new grpc.Server(); - server.addProtoService(hello_proto.Greeter.service, + server.addService(hello_proto.Greeter.service, {sayHello: sayHello, sayHelloAgain: sayHelloAgain}); server.bind('0.0.0.0:50051', grpc.ServerCredentials.createInsecure()); server.start(); diff --git a/docs/tutorials/basic/node.md b/docs/tutorials/basic/node.md index a7f1512d..32f2baa8 100644 --- a/docs/tutorials/basic/node.md +++ b/docs/tutorials/basic/node.md @@ -349,7 +349,7 @@ do this for our `RouteGuide` service: ```js function getServer() { var server = new grpc.Server(); - server.addProtoService(routeguide.RouteGuide.service, { + server.addService(routeguide.RouteGuide.service, { getFeature: getFeature, listFeatures: listFeatures, recordRoute: recordRoute,