mirror of
https://github.com/status-im/react-native-udp.git
synced 2025-01-13 02:24:24 +00:00
e8050d3fe8
Refactor the UdpSockets module _clients array to be a member variable. Make the UdpSocketClient's delegate a weak reference. remove reload notificaiton, and rely on dealloc to close all open sockets.
20 lines
418 B
Objective-C
20 lines
418 B
Objective-C
//
|
|
// RCTUDP.h
|
|
// react-native-udp
|
|
//
|
|
// Created by Mark Vayngrib on 5/8/15.
|
|
// Copyright (c) 2015 Tradle, Inc. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <Availability.h>
|
|
#import "GCDAsyncUdpSocket.h"
|
|
#import "UdpSocketClient.h"
|
|
#import "RCTBridgeModule.h"
|
|
#import "RCTBridge.h"
|
|
#import "RCTEventDispatcher.h"
|
|
|
|
@interface UdpSockets : NSObject<SocketClientDelegate, RCTBridgeModule>
|
|
|
|
@end
|