code: function queryEntry(uid, callback) {
  	var route = 'gate.gateHandler.queryEntry';
  	pomelo.init({
  		host: window.location.hostname,
  		port: 3014,
  		log: true
  	}, function() {
  		pomelo.request(route, {
  			uid: uid
  		}, function(data) {
  			pomelo.disconnect();
  			if(data.code === 500) {
  				showError(LOGIN_ERROR);
  				return;
  			}
  			callback(data.host, data.port);
  		});
  	});
  }
docs: query connector