Completed minimal sample in JsDoc of stock client.

pull/440/head
Jun Yang 10 years ago
parent 3c4cb79b0f
commit 67354c81b6
  1. 3
      src/node/examples/stock_client.js

@ -39,5 +39,8 @@ var examples = grpc.load(__dirname + '/stock.proto').examples;
* *
* var StockClient = require('stock_client.js'); * var StockClient = require('stock_client.js');
* var stockClient = new StockClient(server_address); * var stockClient = new StockClient(server_address);
* stockClient.getLastTradePrice({symbol: 'GOOG'}, function(error, response) {
* console.log(error || response);
* });
*/ */
module.exports = examples.Stock; module.exports = examples.Stock;

Loading…
Cancel
Save