blob: cbdbbd7bb0f20f482d5028f8a00769f1283ddbe7 [file] [log] [blame]
var veyron = require('veyron');
veyron.init(function(err, rt) {
if (err) throw err;
var ctx = rt.getContext();
console.log('Binding to service');
rt.newClient().bindTo(ctx, 'pingpong', function(err, s) {
if (err) throw err;
console.log('Pinging');
s.ping(ctx, 'PING', function(err, pong) {
if (err) throw err;
console.log(pong);
process.exit(0);
});
});
});