mqtt-sub_handler 0.1.6.8 → 0.1.6.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mqtt/base_handler.rb +1 -3
- data/lib/mqtt/sub_handler.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35fd43af3792d80dd5b218ad0b3e55c61c4d750d
|
4
|
+
data.tar.gz: afd508d2b76d30428d3c6c74ad44f12a7428b123
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec4ef80c35649a5ed3c56666d7797c9436a2f5aba2e02bfeea433c01be85e5343d7a5fb68fab03fde76953a1787527929ccf1f8f74138fb2913846901e21c3b6
|
7
|
+
data.tar.gz: '0200581a1aa3da0d1a33519d725e3b0d5c987fd54f6e9466e69f8638de2a3844abab71ba4384a8121539e03889961fe201977086a319ad2147c4516b0956e27c'
|
data/lib/mqtt/base_handler.rb
CHANGED
@@ -301,9 +301,7 @@ module MQTT
|
|
301
301
|
@callbackList = Array.new();
|
302
302
|
if mqttClient.is_a? String
|
303
303
|
@mqtt = MQTT::Client.new(mqttClient);
|
304
|
-
@mqtt.clean_session = false
|
305
|
-
|
306
|
-
@mqttWasStartedClean = true if extra_opts[:client_id].nil?
|
304
|
+
@mqtt.clean_session = false unless extra_opts[:client_id].nil?
|
307
305
|
else
|
308
306
|
@mqtt = mqttClient;
|
309
307
|
end
|
data/lib/mqtt/sub_handler.rb
CHANGED
@@ -137,8 +137,8 @@ class SubHandler < BaseHandler
|
|
137
137
|
end
|
138
138
|
alias lock_and_listen lockAndListen
|
139
139
|
|
140
|
-
def initialize(mqttClient, jsonify: true)
|
141
|
-
super(mqttClient);
|
140
|
+
def initialize(mqttClient, jsonify: true, **extra_opts)
|
141
|
+
super(mqttClient, **extra_opts);
|
142
142
|
|
143
143
|
@jsonifyHashes = jsonify;
|
144
144
|
end
|