<commit_before>

#import "AppDelegate.h"
#include "../../../../fayecpp.h"
#include "../../../../src/FCJsonUtils.h"

#include <signal.h>
#include <stdlib.h>
#include <thread>

#define OBJC_CLIENT 1

class FayeDelegate;
static NSString * const _clientURL = @"http://messages.presentain.com:80/faye"; // @"https://localhost:6001/faye";
static NSString * const _clientChannel1 = @"/seminars/5322e93d8ee60a422400008f";// @"/xxxxxxxx/xxxxxxxxxxxxx";
static NSString * const _clientChannel2 = @"/seminars_service/5322e93d8ee60a422400008f"; // @"/xxxxxx";


#if defined(OBJC_CLIENT)
#import "FayeCppClient.h"
#else
FayeCpp::Client * _client = NULL;
FayeDelegate * _delegate = NULL;

class FayeDelegate : public FayeCpp::Delegate
{
public:
	virtual void onFayeTransportConnected(FayeCpp::Client * client)
	{
		FayeCpp::RELog::log("DELEGATE onFayeTransportConnected");
	}
	
	virtual void onFayeTransportDisconnected(FayeCpp::Client * client)
	{
		FayeCpp::RELog::log("DELEGATE onFayeTransportDisconnected");

		FayeCpp::RELog::log("Try reconnect.");<commit_msg>Release 1.2.0<commit_after>

#import "AppDelegate.h"
#include "../../../../fayecpp.h"
#include "../../../../src/FCJsonUtils.h"

#include <signal.h>
#include <stdlib.h>
#include <thread>

#define OBJC_CLIENT 1

class FayeDelegate;
static NSString * const _clientURL = @"https://localhost:6001/faye";
static NSString * const _clientChannel1 = @"/xxxxxxxx/xxxxxxxxxxxxx";
static NSString * const _clientChannel2 = @"/xxxxxx";

#if defined(OBJC_CLIENT)
#import "FayeCppClient.h"
#else
FayeCpp::Client * _client = NULL;
FayeDelegate * _delegate = NULL;

class FayeDelegate : public FayeCpp::Delegate
{
public:
	virtual void onFayeTransportConnected(FayeCpp::Client * client)
	{
		FayeCpp::RELog::log("DELEGATE onFayeTransportConnected");
	}
	
	virtual void onFayeTransportDisconnected(FayeCpp::Client * client)
	{
		FayeCpp::RELog::log("DELEGATE onFayeTransportDisconnected");

		FayeCpp::RELog::log("Try reconnect.");
{'fraction_non_alphanumeric': 0.15936863543788188, 'fraction_numerical': 0.0280040733197556, 'mean_word_length': 5.5719063545150505, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3821967', 'n_tokens_mistral': 754, 'n_tokens_neox': 701, 'n_words': 129}