aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/node/dynamic_codegen/greeter_server.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/node/dynamic_codegen/greeter_server.js')
-rw-r--r--examples/node/dynamic_codegen/greeter_server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/node/dynamic_codegen/greeter_server.js b/examples/node/dynamic_codegen/greeter_server.js
index f9cb1b13d6..180f96c28b 100644
--- a/examples/node/dynamic_codegen/greeter_server.js
+++ b/examples/node/dynamic_codegen/greeter_server.js
@@ -34,7 +34,7 @@ function sayHello(call, callback) {
*/
function main() {
var server = new grpc.Server();
- server.addProtoService(hello_proto.Greeter.service, {sayHello: sayHello});
+ server.addService(hello_proto.Greeter.service, {sayHello: sayHello});
server.bind('0.0.0.0:50051', grpc.ServerCredentials.createInsecure());
server.start();
}