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,