//
//  DKSocket.h
//  DKWF
//
//  Created by nana on 2020/7/1.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface DKSocket : NSObject

@property(nonatomic, copy)void(^checkNetWorkBlock)(BOOL networkStaus);
+ (instancetype)share;
+ (instancetype)share1;
/// 心跳的数据
@property(nonatomic,strong)NSData *heartbeatData;
- (void)disconnect;
- (void)connectHost:(NSString *)host port:(uint16_t)port ;
- (void)sendData:(NSData *)data completeBlock:(void(^)(NSData *response))completeBlock;
@property(nonatomic, copy)void(^recvDataBlock)(NSData *rdata);
@end

NS_ASSUME_NONNULL_END
