app.js 315 B

12345678910111213141516
  1. /**
  2. * Created by shihuayang on 7/17/2016.
  3. */
  4. var PomeloClient = require('./lib/pomelo-client-proxy.js');
  5. var pomelo = new PomeloClient();
  6. var host = '127.0.0.1';
  7. var port = 3010;
  8. pomelo.init({host: host, port: port, log: true}, function (err) {
  9. });
  10. setTimeout(function () {
  11. pomelo.disconnect();
  12. }, 30000);