XHR.prototype.scheme = function () {
      return this.socket.options.secure ? 'https' : 'http';
    };