Added echoing of requested stock symbol.

This makes the example more realistic.
pull/441/head
Jun Yang 10 years ago
parent 09e4ea1a7e
commit d95a16c4f4
  1. 2
      src/node/examples/stock_server.js

@ -38,7 +38,7 @@ var examples = grpc.load(__dirname + '/stock.proto').examples;
var StockServer = grpc.buildServer([examples.Stock.service]);
function getLastTradePrice(call, callback) {
callback(null, {price: 88});
callback(null, {symbol: call.request.symbol, price: 88});
}
function watchFutureTrades(call) {

Loading…
Cancel
Save