var veyron = require('veyron');

var pingPongService = {
  ping: function(msg){
    console.log(msg);
    return 'PONG';
  }
};

veyron.init(function(err, rt) {
  if (err) throw err;

  rt.serve('pingpong', pingPongService, function(err) {
    if (err) throw err;
  });
});

var veyron = require('veyron');
var leafDispatcher = require('veyron/src/ipc/leaf_dispatcher');

var pingPongService = {
  ping: function(msg){
    console.log(msg);
    return 'PONG';
  }
};

veyron.init(function(err, rt) {
  if (err) throw err;

  rt.serve('pingpong', leafDispatcher(pingPongService), function(err) {
    if (err) throw err;
  });
});

Fix js testdata to use leaf dispatcher.
veyron/tools/playground: Fix js testdata to use leaf dispatcher.

Change-Id: I32c29cb44458ecf9ab06d0dc66576172e4189134
