File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -68,14 +68,14 @@ -(void)stopObserving {
68
68
RCT_EXPORT_METHOD (createClient:(NSDictionary *) options
69
69
resolver:(RCTPromiseResolveBlock)resolve
70
70
rejecter:(RCTPromiseRejectBlock)reject) {
71
-
71
+
72
72
NSString *clientRef = [[NSProcessInfo processInfo ] globallyUniqueString ];
73
-
73
+
74
74
Mqtt *client = [[Mqtt allocWithZone: nil ] initWithEmitter: self options: options clientRef: clientRef];
75
-
75
+
76
76
[[self clients ] setObject: client forKey: clientRef];
77
77
resolve (clientRef);
78
-
78
+
79
79
}
80
80
81
81
RCT_EXPORT_METHOD (removeClient:(nonnull NSString *) clientRef) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " sp-react-native-mqtt" ,
3
- "version" : " 0.4.20 " ,
3
+ "version" : " 0.4.21 " ,
4
4
"description" : " MQTT client for react-native" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments