@aws-amplify/api 4.0.49 → 4.0.50-unstable.4

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.
@@ -12135,137 +12135,6 @@ function (_super) {
12135
12135
 
12136
12136
 
12137
12137
 
12138
- /***/ }),
12139
-
12140
- /***/ "../pubsub/lib-esm/Providers/AWSAppSyncRealTimeProvider/constants.js":
12141
- /*!***************************************************************************!*\
12142
- !*** ../pubsub/lib-esm/Providers/AWSAppSyncRealTimeProvider/constants.js ***!
12143
- \***************************************************************************/
12144
- /*! exports provided: MAX_DELAY_MS, NON_RETRYABLE_CODES, MESSAGE_TYPES, SUBSCRIPTION_STATUS, SOCKET_STATUS, AMPLIFY_SYMBOL, AWS_APPSYNC_REALTIME_HEADERS, CONNECTION_INIT_TIMEOUT, START_ACK_TIMEOUT, DEFAULT_KEEP_ALIVE_TIMEOUT, DEFAULT_KEEP_ALIVE_ALERT_TIMEOUT */
12145
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
12146
-
12147
- "use strict";
12148
- __webpack_require__.r(__webpack_exports__);
12149
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAX_DELAY_MS", function() { return MAX_DELAY_MS; });
12150
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NON_RETRYABLE_CODES", function() { return NON_RETRYABLE_CODES; });
12151
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MESSAGE_TYPES", function() { return MESSAGE_TYPES; });
12152
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SUBSCRIPTION_STATUS", function() { return SUBSCRIPTION_STATUS; });
12153
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SOCKET_STATUS", function() { return SOCKET_STATUS; });
12154
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AMPLIFY_SYMBOL", function() { return AMPLIFY_SYMBOL; });
12155
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AWS_APPSYNC_REALTIME_HEADERS", function() { return AWS_APPSYNC_REALTIME_HEADERS; });
12156
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONNECTION_INIT_TIMEOUT", function() { return CONNECTION_INIT_TIMEOUT; });
12157
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "START_ACK_TIMEOUT", function() { return START_ACK_TIMEOUT; });
12158
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_KEEP_ALIVE_TIMEOUT", function() { return DEFAULT_KEEP_ALIVE_TIMEOUT; });
12159
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_KEEP_ALIVE_ALERT_TIMEOUT", function() { return DEFAULT_KEEP_ALIVE_ALERT_TIMEOUT; });
12160
- var MAX_DELAY_MS = 5000;
12161
- var NON_RETRYABLE_CODES = [400, 401, 403];
12162
- var MESSAGE_TYPES;
12163
-
12164
- (function (MESSAGE_TYPES) {
12165
- /**
12166
- * Client -> Server message.
12167
- * This message type is the first message after handshake and this will initialize AWS AppSync RealTime communication
12168
- */
12169
- MESSAGE_TYPES["GQL_CONNECTION_INIT"] = "connection_init";
12170
- /**
12171
- * Server -> Client message
12172
- * This message type is in case there is an issue with AWS AppSync RealTime when establishing connection
12173
- */
12174
-
12175
- MESSAGE_TYPES["GQL_CONNECTION_ERROR"] = "connection_error";
12176
- /**
12177
- * Server -> Client message.
12178
- * This message type is for the ack response from AWS AppSync RealTime for GQL_CONNECTION_INIT message
12179
- */
12180
-
12181
- MESSAGE_TYPES["GQL_CONNECTION_ACK"] = "connection_ack";
12182
- /**
12183
- * Client -> Server message.
12184
- * This message type is for register subscriptions with AWS AppSync RealTime
12185
- */
12186
-
12187
- MESSAGE_TYPES["GQL_START"] = "start";
12188
- /**
12189
- * Server -> Client message.
12190
- * This message type is for the ack response from AWS AppSync RealTime for GQL_START message
12191
- */
12192
-
12193
- MESSAGE_TYPES["GQL_START_ACK"] = "start_ack";
12194
- /**
12195
- * Server -> Client message.
12196
- * This message type is for subscription message from AWS AppSync RealTime
12197
- */
12198
-
12199
- MESSAGE_TYPES["GQL_DATA"] = "data";
12200
- /**
12201
- * Server -> Client message.
12202
- * This message type helps the client to know is still receiving messages from AWS AppSync RealTime
12203
- */
12204
-
12205
- MESSAGE_TYPES["GQL_CONNECTION_KEEP_ALIVE"] = "ka";
12206
- /**
12207
- * Client -> Server message.
12208
- * This message type is for unregister subscriptions with AWS AppSync RealTime
12209
- */
12210
-
12211
- MESSAGE_TYPES["GQL_STOP"] = "stop";
12212
- /**
12213
- * Server -> Client message.
12214
- * This message type is for the ack response from AWS AppSync RealTime for GQL_STOP message
12215
- */
12216
-
12217
- MESSAGE_TYPES["GQL_COMPLETE"] = "complete";
12218
- /**
12219
- * Server -> Client message.
12220
- * This message type is for sending error messages from AWS AppSync RealTime to the client
12221
- */
12222
-
12223
- MESSAGE_TYPES["GQL_ERROR"] = "error";
12224
- })(MESSAGE_TYPES || (MESSAGE_TYPES = {}));
12225
-
12226
- var SUBSCRIPTION_STATUS;
12227
-
12228
- (function (SUBSCRIPTION_STATUS) {
12229
- SUBSCRIPTION_STATUS[SUBSCRIPTION_STATUS["PENDING"] = 0] = "PENDING";
12230
- SUBSCRIPTION_STATUS[SUBSCRIPTION_STATUS["CONNECTED"] = 1] = "CONNECTED";
12231
- SUBSCRIPTION_STATUS[SUBSCRIPTION_STATUS["FAILED"] = 2] = "FAILED";
12232
- })(SUBSCRIPTION_STATUS || (SUBSCRIPTION_STATUS = {}));
12233
-
12234
- var SOCKET_STATUS;
12235
-
12236
- (function (SOCKET_STATUS) {
12237
- SOCKET_STATUS[SOCKET_STATUS["CLOSED"] = 0] = "CLOSED";
12238
- SOCKET_STATUS[SOCKET_STATUS["READY"] = 1] = "READY";
12239
- SOCKET_STATUS[SOCKET_STATUS["CONNECTING"] = 2] = "CONNECTING";
12240
- })(SOCKET_STATUS || (SOCKET_STATUS = {}));
12241
-
12242
- var AMPLIFY_SYMBOL = typeof Symbol !== 'undefined' && typeof Symbol["for"] === 'function' ? Symbol["for"]('amplify_default') : '@@amplify_default';
12243
- var AWS_APPSYNC_REALTIME_HEADERS = {
12244
- accept: 'application/json, text/javascript',
12245
- 'content-encoding': 'amz-1.0',
12246
- 'content-type': 'application/json; charset=UTF-8'
12247
- };
12248
- /**
12249
- * Time in milleseconds to wait for GQL_CONNECTION_INIT message
12250
- */
12251
-
12252
- var CONNECTION_INIT_TIMEOUT = 15000;
12253
- /**
12254
- * Time in milleseconds to wait for GQL_START_ACK message
12255
- */
12256
-
12257
- var START_ACK_TIMEOUT = 15000;
12258
- /**
12259
- * Default Time in milleseconds to wait for GQL_CONNECTION_KEEP_ALIVE message
12260
- */
12261
-
12262
- var DEFAULT_KEEP_ALIVE_TIMEOUT = 5 * 60 * 1000;
12263
- /**
12264
- * Default Time in milleseconds to alert for missed GQL_CONNECTION_KEEP_ALIVE message
12265
- */
12266
-
12267
- var DEFAULT_KEEP_ALIVE_ALERT_TIMEOUT = 65 * 1000;
12268
-
12269
12138
  /***/ }),
12270
12139
 
12271
12140
  /***/ "../pubsub/lib-esm/Providers/AWSAppSyncRealTimeProvider/index.js":
@@ -12295,7 +12164,7 @@ __webpack_require__.r(__webpack_exports__);
12295
12164
  /* harmony import */ var _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_auth__WEBPACK_IMPORTED_MODULE_7__);
12296
12165
  /* harmony import */ var _PubSubProvider__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../PubSubProvider */ "../pubsub/lib-esm/Providers/PubSubProvider.js");
12297
12166
  /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../index */ "../pubsub/lib-esm/index.js");
12298
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./constants */ "../pubsub/lib-esm/Providers/AWSAppSyncRealTimeProvider/constants.js");
12167
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../constants */ "../pubsub/lib-esm/Providers/constants.js");
12299
12168
  /* harmony import */ var _utils_ConnectionStateMonitor__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../utils/ConnectionStateMonitor */ "../pubsub/lib-esm/utils/ConnectionStateMonitor.js");
12300
12169
  var __extends = undefined && undefined.__extends || function () {
12301
12170
  var _extendStatics = function extendStatics(d, b) {
@@ -13924,6 +13793,9 @@ __webpack_require__.r(__webpack_exports__);
13924
13793
  /* harmony import */ var _PubSubProvider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PubSubProvider */ "../pubsub/lib-esm/Providers/PubSubProvider.js");
13925
13794
  /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
13926
13795
  /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__);
13796
+ /* harmony import */ var _utils_ConnectionStateMonitor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/ConnectionStateMonitor */ "../pubsub/lib-esm/utils/ConnectionStateMonitor.js");
13797
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constants */ "../pubsub/lib-esm/Providers/constants.js");
13798
+ /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! .. */ "../pubsub/lib-esm/index.js");
13927
13799
  function _typeof(obj) {
13928
13800
  "@babel/helpers - typeof";
13929
13801
 
@@ -14150,6 +14022,9 @@ var __rest = undefined && undefined.__rest || function (s, e) {
14150
14022
 
14151
14023
 
14152
14024
 
14025
+
14026
+
14027
+
14153
14028
  var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__["ConsoleLogger"]('MqttOverWSProvider');
14154
14029
  function mqttTopicMatch(filter, topic) {
14155
14030
  var filterArray = filter.split('/');
@@ -14215,6 +14090,14 @@ function () {
14215
14090
  return ClientsQueue;
14216
14091
  }();
14217
14092
 
14093
+ var dispatchPubSubEvent = function dispatchPubSubEvent(event, data, message) {
14094
+ _aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__["Hub"].dispatch('pubsub', {
14095
+ event: event,
14096
+ data: data,
14097
+ message: message
14098
+ }, 'PubSub', _constants__WEBPACK_IMPORTED_MODULE_6__["AMPLIFY_SYMBOL"]);
14099
+ };
14100
+
14218
14101
  var topicSymbol = typeof Symbol !== 'undefined' ? Symbol('topic') : '@@topic';
14219
14102
 
14220
14103
  var MqttOverWSProvider =
@@ -14232,8 +14115,17 @@ function (_super) {
14232
14115
  })) || this;
14233
14116
 
14234
14117
  _this._clientsQueue = new ClientsQueue();
14118
+ _this.connectionStateMonitor = new _utils_ConnectionStateMonitor__WEBPACK_IMPORTED_MODULE_5__["ConnectionStateMonitor"]();
14235
14119
  _this._topicObservers = new Map();
14236
- _this._clientIdObservers = new Map();
14120
+ _this._clientIdObservers = new Map(); // Monitor the connection health state and pass changes along to Hub
14121
+
14122
+ _this.connectionStateMonitor.connectionStateObservable.subscribe(function (connectionStateChange) {
14123
+ dispatchPubSubEvent(___WEBPACK_IMPORTED_MODULE_7__["CONNECTION_STATE_CHANGE"], {
14124
+ provider: _this,
14125
+ connectionState: connectionStateChange
14126
+ }, "Connection state is " + connectionStateChange);
14127
+ });
14128
+
14237
14129
  return _this;
14238
14130
  }
14239
14131
 
@@ -14330,6 +14222,7 @@ function (_super) {
14330
14222
  switch (_b.label) {
14331
14223
  case 0:
14332
14224
  logger.debug('Creating new MQTT client', clientId);
14225
+ this.connectionStateMonitor.record(_utils_ConnectionStateMonitor__WEBPACK_IMPORTED_MODULE_5__["CONNECTION_CHANGE"].OPENING_CONNECTION);
14333
14226
  client = new paho_mqtt__WEBPACK_IMPORTED_MODULE_0__["Client"](url, clientId); // client.trace = (args) => logger.debug(clientId, JSON.stringify(args, null, 2));
14334
14227
 
14335
14228
  client.onMessageArrived = function (_a) {
@@ -14347,6 +14240,8 @@ function (_super) {
14347
14240
  clientId: clientId,
14348
14241
  errorCode: errorCode
14349
14242
  }, args));
14243
+
14244
+ _this.connectionStateMonitor.record(_utils_ConnectionStateMonitor__WEBPACK_IMPORTED_MODULE_5__["CONNECTION_CHANGE"].CLOSED);
14350
14245
  };
14351
14246
 
14352
14247
  return [4
@@ -14358,13 +14253,18 @@ function (_super) {
14358
14253
  onSuccess: function onSuccess() {
14359
14254
  return resolve(client);
14360
14255
  },
14361
- onFailure: reject
14256
+ onFailure: function onFailure() {
14257
+ reject();
14258
+
14259
+ _this.connectionStateMonitor.record(_utils_ConnectionStateMonitor__WEBPACK_IMPORTED_MODULE_5__["CONNECTION_CHANGE"].CONNECTION_FAILED);
14260
+ }
14362
14261
  });
14363
14262
  })];
14364
14263
 
14365
14264
  case 1:
14366
14265
  _b.sent();
14367
14266
 
14267
+ this.connectionStateMonitor.record(_utils_ConnectionStateMonitor__WEBPACK_IMPORTED_MODULE_5__["CONNECTION_CHANGE"].CONNECTION_ESTABLISHED);
14368
14268
  return [2
14369
14269
  /*return*/
14370
14270
  , client];
@@ -14416,6 +14316,7 @@ function (_super) {
14416
14316
 
14417
14317
  if (client && client.isConnected()) {
14418
14318
  client.disconnect();
14319
+ this.connectionStateMonitor.record(_utils_ConnectionStateMonitor__WEBPACK_IMPORTED_MODULE_5__["CONNECTION_CHANGE"].CLOSED);
14419
14320
  }
14420
14321
 
14421
14322
  this.clientsQueue.remove(clientId);
@@ -14596,6 +14497,8 @@ function (_super) {
14596
14497
  (_a = _this._clientIdObservers.get(clientId)) === null || _a === void 0 ? void 0 : _a["delete"](observer); // No more observers per client => client not needed anymore
14597
14498
 
14598
14499
  if (((_b = _this._clientIdObservers.get(clientId)) === null || _b === void 0 ? void 0 : _b.size) === 0) {
14500
+ _this.connectionStateMonitor.record(_utils_ConnectionStateMonitor__WEBPACK_IMPORTED_MODULE_5__["CONNECTION_CHANGE"].CLOSING_CONNECTION);
14501
+
14599
14502
  _this.disconnect(clientId);
14600
14503
 
14601
14504
  _this._clientIdObservers["delete"](clientId);
@@ -14695,6 +14598,137 @@ function () {
14695
14598
 
14696
14599
 
14697
14600
 
14601
+ /***/ }),
14602
+
14603
+ /***/ "../pubsub/lib-esm/Providers/constants.js":
14604
+ /*!************************************************!*\
14605
+ !*** ../pubsub/lib-esm/Providers/constants.js ***!
14606
+ \************************************************/
14607
+ /*! exports provided: MAX_DELAY_MS, NON_RETRYABLE_CODES, MESSAGE_TYPES, SUBSCRIPTION_STATUS, SOCKET_STATUS, AMPLIFY_SYMBOL, AWS_APPSYNC_REALTIME_HEADERS, CONNECTION_INIT_TIMEOUT, START_ACK_TIMEOUT, DEFAULT_KEEP_ALIVE_TIMEOUT, DEFAULT_KEEP_ALIVE_ALERT_TIMEOUT */
14608
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
14609
+
14610
+ "use strict";
14611
+ __webpack_require__.r(__webpack_exports__);
14612
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAX_DELAY_MS", function() { return MAX_DELAY_MS; });
14613
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NON_RETRYABLE_CODES", function() { return NON_RETRYABLE_CODES; });
14614
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MESSAGE_TYPES", function() { return MESSAGE_TYPES; });
14615
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SUBSCRIPTION_STATUS", function() { return SUBSCRIPTION_STATUS; });
14616
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SOCKET_STATUS", function() { return SOCKET_STATUS; });
14617
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AMPLIFY_SYMBOL", function() { return AMPLIFY_SYMBOL; });
14618
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AWS_APPSYNC_REALTIME_HEADERS", function() { return AWS_APPSYNC_REALTIME_HEADERS; });
14619
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONNECTION_INIT_TIMEOUT", function() { return CONNECTION_INIT_TIMEOUT; });
14620
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "START_ACK_TIMEOUT", function() { return START_ACK_TIMEOUT; });
14621
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_KEEP_ALIVE_TIMEOUT", function() { return DEFAULT_KEEP_ALIVE_TIMEOUT; });
14622
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_KEEP_ALIVE_ALERT_TIMEOUT", function() { return DEFAULT_KEEP_ALIVE_ALERT_TIMEOUT; });
14623
+ var MAX_DELAY_MS = 5000;
14624
+ var NON_RETRYABLE_CODES = [400, 401, 403];
14625
+ var MESSAGE_TYPES;
14626
+
14627
+ (function (MESSAGE_TYPES) {
14628
+ /**
14629
+ * Client -> Server message.
14630
+ * This message type is the first message after handshake and this will initialize AWS AppSync RealTime communication
14631
+ */
14632
+ MESSAGE_TYPES["GQL_CONNECTION_INIT"] = "connection_init";
14633
+ /**
14634
+ * Server -> Client message
14635
+ * This message type is in case there is an issue with AWS AppSync RealTime when establishing connection
14636
+ */
14637
+
14638
+ MESSAGE_TYPES["GQL_CONNECTION_ERROR"] = "connection_error";
14639
+ /**
14640
+ * Server -> Client message.
14641
+ * This message type is for the ack response from AWS AppSync RealTime for GQL_CONNECTION_INIT message
14642
+ */
14643
+
14644
+ MESSAGE_TYPES["GQL_CONNECTION_ACK"] = "connection_ack";
14645
+ /**
14646
+ * Client -> Server message.
14647
+ * This message type is for register subscriptions with AWS AppSync RealTime
14648
+ */
14649
+
14650
+ MESSAGE_TYPES["GQL_START"] = "start";
14651
+ /**
14652
+ * Server -> Client message.
14653
+ * This message type is for the ack response from AWS AppSync RealTime for GQL_START message
14654
+ */
14655
+
14656
+ MESSAGE_TYPES["GQL_START_ACK"] = "start_ack";
14657
+ /**
14658
+ * Server -> Client message.
14659
+ * This message type is for subscription message from AWS AppSync RealTime
14660
+ */
14661
+
14662
+ MESSAGE_TYPES["GQL_DATA"] = "data";
14663
+ /**
14664
+ * Server -> Client message.
14665
+ * This message type helps the client to know is still receiving messages from AWS AppSync RealTime
14666
+ */
14667
+
14668
+ MESSAGE_TYPES["GQL_CONNECTION_KEEP_ALIVE"] = "ka";
14669
+ /**
14670
+ * Client -> Server message.
14671
+ * This message type is for unregister subscriptions with AWS AppSync RealTime
14672
+ */
14673
+
14674
+ MESSAGE_TYPES["GQL_STOP"] = "stop";
14675
+ /**
14676
+ * Server -> Client message.
14677
+ * This message type is for the ack response from AWS AppSync RealTime for GQL_STOP message
14678
+ */
14679
+
14680
+ MESSAGE_TYPES["GQL_COMPLETE"] = "complete";
14681
+ /**
14682
+ * Server -> Client message.
14683
+ * This message type is for sending error messages from AWS AppSync RealTime to the client
14684
+ */
14685
+
14686
+ MESSAGE_TYPES["GQL_ERROR"] = "error";
14687
+ })(MESSAGE_TYPES || (MESSAGE_TYPES = {}));
14688
+
14689
+ var SUBSCRIPTION_STATUS;
14690
+
14691
+ (function (SUBSCRIPTION_STATUS) {
14692
+ SUBSCRIPTION_STATUS[SUBSCRIPTION_STATUS["PENDING"] = 0] = "PENDING";
14693
+ SUBSCRIPTION_STATUS[SUBSCRIPTION_STATUS["CONNECTED"] = 1] = "CONNECTED";
14694
+ SUBSCRIPTION_STATUS[SUBSCRIPTION_STATUS["FAILED"] = 2] = "FAILED";
14695
+ })(SUBSCRIPTION_STATUS || (SUBSCRIPTION_STATUS = {}));
14696
+
14697
+ var SOCKET_STATUS;
14698
+
14699
+ (function (SOCKET_STATUS) {
14700
+ SOCKET_STATUS[SOCKET_STATUS["CLOSED"] = 0] = "CLOSED";
14701
+ SOCKET_STATUS[SOCKET_STATUS["READY"] = 1] = "READY";
14702
+ SOCKET_STATUS[SOCKET_STATUS["CONNECTING"] = 2] = "CONNECTING";
14703
+ })(SOCKET_STATUS || (SOCKET_STATUS = {}));
14704
+
14705
+ var AMPLIFY_SYMBOL = typeof Symbol !== 'undefined' && typeof Symbol["for"] === 'function' ? Symbol["for"]('amplify_default') : '@@amplify_default';
14706
+ var AWS_APPSYNC_REALTIME_HEADERS = {
14707
+ accept: 'application/json, text/javascript',
14708
+ 'content-encoding': 'amz-1.0',
14709
+ 'content-type': 'application/json; charset=UTF-8'
14710
+ };
14711
+ /**
14712
+ * Time in milleseconds to wait for GQL_CONNECTION_INIT message
14713
+ */
14714
+
14715
+ var CONNECTION_INIT_TIMEOUT = 15000;
14716
+ /**
14717
+ * Time in milleseconds to wait for GQL_START_ACK message
14718
+ */
14719
+
14720
+ var START_ACK_TIMEOUT = 15000;
14721
+ /**
14722
+ * Default Time in milleseconds to wait for GQL_CONNECTION_KEEP_ALIVE message
14723
+ */
14724
+
14725
+ var DEFAULT_KEEP_ALIVE_TIMEOUT = 5 * 60 * 1000;
14726
+ /**
14727
+ * Default Time in milleseconds to alert for missed GQL_CONNECTION_KEEP_ALIVE message
14728
+ */
14729
+
14730
+ var DEFAULT_KEEP_ALIVE_ALERT_TIMEOUT = 65 * 1000;
14731
+
14698
14732
  /***/ }),
14699
14733
 
14700
14734
  /***/ "../pubsub/lib-esm/Providers/index.js":