Does thrift node js provide client side time or default timeout? Not able to find any relevant examples.
Using below client code:
var thrift = require('thrift');
var MultiplicationService = require("./gen-nodejs/MultiplicationService");
var transport = thrift.TBufferedTransport;
var protocol = thrift.TBinaryProtocol;
var connection = thrift.createConnection("localhost", 9090, {
transport : transport,
protocol : protocol
});
connection.on('error', function(err) {
assert(false, err);
});
var client = thrift.createClient(MultiplicationService, connection);
client.multiply(2,3, function(err, response) {
console.log("2*3=" + response);
});
via rajesh kumar
No comments:
Post a Comment