src/wireclient.js
function WireClient(rs) {
  this.rs = rs;
  this.connected = false;

  /**
   * Event: connected
   *   Fired when the wireclient connect method realizes that it is in
   *   possession of a token and href
   **/
  eventHandling(this, 'connected', 'not-connected');

  if (hasLocalStorage) {
    const settings = getJSONFromLocalStorage(SETTINGS_KEY);
    if (settings) {
      setTimeout(function () {
        this.configure(settings);
      }.bind(this), 0);
    }
  }

  this._revisionCache = {};

  if (this.connected) {
    setTimeout(this._emit.bind(this), 0, 'connected');
  }
}
function WireClient(rs) {
  this.rs = rs;
  this.connected = false;

  /**
   * Event: connected
   *   Fired when the wireclient connect method realizes that it is in
   *   possession of a token and href
   **/
  eventHandling(this, 'connected', 'not-connected');

  if (hasLocalStorage) {
    const settings = getJSONFromLocalStorage(SETTINGS_KEY);
    if (settings) {
      setTimeout(function () {
        this.configure(settings);
      }.bind(this), 0);
    }
  }

  this._revisionCache = {};

  if (this.connected) {
    setTimeout(this._emit.bind(this), 0, 'connected');
  }
}
Class : WireClient