//
//  GWebSocket.h
//  Pods
//
//  Created by gan on 2025/3/24.
//

#ifndef GWebSocket_h
#define GWebSocket_h


#endif /* GWebSocket_h */
#import "config.h"

@protocol GWebSocketDelegate <NSObject>
@optional
- (void)GWebSocketAction:(NSString *_Nullable)message;
@end

static NSString * _Nullable Friendchat=@"0";
static NSString * _Nullable Groupchat=@"1";

@interface GWebSocket : NSObject
+ (GWebSocket *_Nonnull)shareInstance;
@property (nonatomic,weak) id <GWebSocketDelegate> delegate;
- (void)connectWebSocket;
- (void)closeWebSocket;

- (void)chekWebSocket;

- (void)sendMsg:(NSString *_Nonnull)msg;
-(void)sendRecNote:(NSDictionary *_Nullable)msg;

@end
