code: function(variation, payload) {
            if (variation === 'Attempt' || !_connectivityAttemptPinger) {
              _connectivityAttemptPinger = new OT.ConnectivityAttemptPinger({
                action: 'Publish',
                'sessionId': _session ? _session.sessionId : null,
                'connectionId': _session &&
                  _session.isConnected() ? _session.connection.connectionId : null,
                'partnerId': _session ? _session.apiKey : OT.APIKEY,
                streamId: _streamId
              });
            }
            if (variation === 'Failure' && payload.reason !== 'Non-fatal') {
              // We don't want to log an invalid sequence in this case because it was a
              // non-fatal failure
              _connectivityAttemptPinger.setVariation(variation);
            }
            logAnalyticsEvent('Publish', variation, payload);
          }
docs: / Private Methods