comprodls-sdk 2.77.0 → 2.78.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,7 +21,6 @@ module.exports = function () {
|
|
|
21
21
|
var _globalSubscription = [];
|
|
22
22
|
var _globalSubscriptionStatus = {};
|
|
23
23
|
var bStatusSubscribed = false;
|
|
24
|
-
var bPollingInitiated = false;
|
|
25
24
|
|
|
26
25
|
/** ###### END OF MODULE GLOBALS */
|
|
27
26
|
|
|
@@ -78,10 +77,6 @@ module.exports = function () {
|
|
|
78
77
|
|
|
79
78
|
var _translatePubnubStatus = function(status, options) {
|
|
80
79
|
var channels = [], error, successObj;
|
|
81
|
-
|
|
82
|
-
// If polling has been initiated, ignore all punnub status
|
|
83
|
-
if (bPollingInitiated) return;
|
|
84
|
-
|
|
85
80
|
switch (status.category) {
|
|
86
81
|
case "PNConnectedCategory":
|
|
87
82
|
if(status.operation === "PNSubscribeOperation") {
|
|
@@ -161,7 +156,6 @@ module.exports = function () {
|
|
|
161
156
|
* The wrapper supports multiple channels, but the APP currently uses a single channel only.
|
|
162
157
|
* Polling will also limited to a single channel.
|
|
163
158
|
*/
|
|
164
|
-
bPollingInitiated = true;
|
|
165
159
|
}
|
|
166
160
|
}
|
|
167
161
|
else {
|
|
@@ -251,7 +245,6 @@ module.exports = function () {
|
|
|
251
245
|
_globalSubscription = [];
|
|
252
246
|
bStatusSubscribed = false;
|
|
253
247
|
_globalSubscriptionStatus = {};
|
|
254
|
-
bPollingInitiated = false;
|
|
255
248
|
}
|
|
256
249
|
_pubnubClient = undefined;
|
|
257
250
|
};
|