WS.prototype.scheme = function () {
      return this.socket.options.secure ? 'wss' : 'ws';
    };