in nodejs/src/index.js [123:137]
function readBytes (buffer, Model, callback) {
var client = new Model();
try {
var transport = new TFramedTransport(buffer);
var protocol = new TCompactProtocol(transport);
client.read(protocol);
process.nextTick(function () {
callback(null, client);
});
} catch (ex) {
process.nextTick(function () {
callback(ex);
});
}
}