function Connection(options) {
  options = options || {};

  var location;
  if (typeof options === 'string') {