mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
Added echoing of requested stock symbol.
This makes the example more realistic.
This commit is contained in:
parent
7fab056c99
commit
187580595f
@ -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…
x
Reference in New Issue
Block a user