WebRTCStore.m 654 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // WebRTCStore.m
  3. // AIIM
  4. //
  5. // Created by gan on 2025/4/16.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import "WebRTCStore.h"
  9. @interface WebRTCStore()
  10. @end
  11. @implementation WebRTCStore
  12. + (WebRTCStore *_Nonnull)shareInstance{
  13. static id gShareInstance = nil;
  14. static dispatch_once_t onceToken;
  15. dispatch_once(&onceToken, ^{
  16. gShareInstance = [[self alloc] init];
  17. });
  18. return gShareInstance;
  19. }
  20. - (instancetype)init {
  21. if (self = [super init]) {
  22. }
  23. return self;
  24. }
  25. -(void)reciveMsg:(NSDictionary *_Nonnull)msg{
  26. NSLog(@"msg:%@",msg);
  27. if(self.delegate){
  28. [self.delegate WebRTCStoreAct:msg];
  29. }
  30. }
  31. @end