comprodls-sdk 2.74.1 → 2.76.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.
package/dist/comprodls-sdk.js
CHANGED
|
@@ -13056,6 +13056,7 @@ module.exports = function () {
|
|
|
13056
13056
|
var _globalSubscription = [];
|
|
13057
13057
|
var _globalSubscriptionStatus = {};
|
|
13058
13058
|
var bStatusSubscribed = false;
|
|
13059
|
+
var bPollingInitiated = false;
|
|
13059
13060
|
|
|
13060
13061
|
/** ###### END OF MODULE GLOBALS */
|
|
13061
13062
|
|
|
@@ -13089,7 +13090,8 @@ module.exports = function () {
|
|
|
13089
13090
|
if(!_globalSubscription.includes(pubNubChannel)) {
|
|
13090
13091
|
_globalSubscription.push(pubNubChannel);
|
|
13091
13092
|
_globalSubscriptionStatus[pubNubChannel] = {
|
|
13092
|
-
status: 'pending'
|
|
13093
|
+
status: 'pending',
|
|
13094
|
+
pushedEventIdentifier: pubNubChannel.split('.*')[0]
|
|
13093
13095
|
};
|
|
13094
13096
|
_eventEmitter.on(pubNubChannel, handler);
|
|
13095
13097
|
_subscribeToPubNubChannels(pubNubChannel);
|
|
@@ -13138,6 +13140,7 @@ module.exports = function () {
|
|
|
13138
13140
|
}
|
|
13139
13141
|
break;
|
|
13140
13142
|
case "PNAccessDeniedCategory":
|
|
13143
|
+
if(bPollingInitiated) break;
|
|
13141
13144
|
if(status.operation === "PNSubscribeOperation") {
|
|
13142
13145
|
var errorData = {
|
|
13143
13146
|
payload: JSON.parse(status.errorData.response.text).payload,
|
|
@@ -13162,6 +13165,7 @@ module.exports = function () {
|
|
|
13162
13165
|
case "PNBadRequestCategory":
|
|
13163
13166
|
case "PNNetworkDownCategory":
|
|
13164
13167
|
case "PNNetworkUpCategory":
|
|
13168
|
+
if(bPollingInitiated) break;
|
|
13165
13169
|
error = {
|
|
13166
13170
|
message: "PushX Error", status: status.statusCode,
|
|
13167
13171
|
pushXError: status
|
|
@@ -13189,6 +13193,7 @@ module.exports = function () {
|
|
|
13189
13193
|
* The wrapper supports multiple channels, but the APP currently uses a single channel only.
|
|
13190
13194
|
* Polling will also limited to a single channel.
|
|
13191
13195
|
*/
|
|
13196
|
+
bPollingInitiated = true;
|
|
13192
13197
|
}
|
|
13193
13198
|
}
|
|
13194
13199
|
else {
|
|
@@ -13199,6 +13204,7 @@ module.exports = function () {
|
|
|
13199
13204
|
// Handle reconnected category status.
|
|
13200
13205
|
break;
|
|
13201
13206
|
default:
|
|
13207
|
+
if(bPollingInitiated) break;
|
|
13202
13208
|
// Emit error for other status-category received from pubnub
|
|
13203
13209
|
error = {
|
|
13204
13210
|
message: "PushX Error",
|
|
@@ -14285,6 +14291,7 @@ function provisionBulkSpaces(options) {
|
|
|
14285
14291
|
* *startdate: <epoch>,
|
|
14286
14292
|
* *enddate: <epoch>,
|
|
14287
14293
|
* description: 'string',
|
|
14294
|
+
* ext_class_title: 'string',
|
|
14288
14295
|
* ext_data: {},
|
|
14289
14296
|
* limits: {
|
|
14290
14297
|
* *los: 0,
|