| 12345678910111213141516171819202122232425262728293031323334 |
- //
- // 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
|