code: function () {                                                                                       // 58
      var self = this;                                                                                              // 59
                                                                                                                    // 60
      if (self.connectionTimer) {                                                                                   // 61
        clearTimeout(self.connectionTimer);                                                                         // 62
        self.connectionTimer = null;                                                                                // 63
      }                                                                                                             // 64
                                                                                                                    // 65
      if (self.currentStatus.connected) {                                                                           // 66
        // already connected. do nothing. this probably shouldn't happen.                                           // 67
        return;                                                                                                     // 68
      }                                                                                                             // 69
                                                                                                                    // 70
      // update status                                                                                              // 71
      self.currentStatus.status = "connected";                                                                      // 72
      self.currentStatus.connected = true;                                                                          // 73
      self.currentStatus.retryCount = 0;                                                                            // 74
      self.statusChanged();                                                                                         // 75
                                                                                                                    // 76
      // fire resets. This must come after status change so that clients                                            // 77
      // can call send from within a reset callback.                                                                // 78
      _.each(self.eventCallbacks.reset, function (callback) { callback(); });                                       // 79
                                                                                                                    // 80
    }
docs: 56 57