BBAWebSocketConfig.h 624 Bytes
//
//  BBAWebSocketConfig.h
//  BBAAPIRequest
//
//  Created by chenjia09 on 2018/5/25.
//

#import <Foundation/Foundation.h>

/**
 *  WebSocket 的全局配置
 */
@interface BBAWebSocketConfig : NSObject

/// 最大并发数,默认25
@property (nonatomic, assign) NSUInteger maxConcurrency;

/// 重连次数,默认0
@property (nonatomic, assign) NSUInteger reconnectTrials;

/// 重连间隔时间,单位为秒,默认2秒
@property (nonatomic, assign) NSUInteger reconnectIntervalInSeconds;

/**
 *  @brief  获取 config 单例对象
 *  @return 返回 config 单例对象
 */
+ (instancetype)sharedConfig;
@end