diff --git a/complete/client.js b/complete/client.js index b11bcb7..e79cf1d 100644 --- a/complete/client.js +++ b/complete/client.js @@ -15,7 +15,7 @@ var grpc = require('grpc'); var booksProto = grpc.load('books.proto'); -var client = new booksProto.books.BookService('127.0.0.1:50051', grpc.Credentials.createInsecure()); +var client = new booksProto.books.BookService('127.0.0.1:50051', grpc.credentials.createInsecure()); function printResponse(error, response) { if (error) @@ -77,4 +77,4 @@ else if (command == 'get') else if (command == 'delete') deleteBook(process.argv[0]); else if (command == 'watch') - watchBooks(); \ No newline at end of file + watchBooks();