@aws-amplify/pubsub 4.4.11-unstable.4 → 4.4.11-unstable.5

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.
@@ -8696,14 +8696,17 @@ function (_super) {
8696
8696
 
8697
8697
  _this.awsRealTimeSocket.send(JSON.stringify(gqlInit));
8698
8698
 
8699
- setTimeout(checkAckOk.bind(_this, ackOk_1), _constants__WEBPACK_IMPORTED_MODULE_10__["CONNECTION_INIT_TIMEOUT"]);
8700
- }
8699
+ var checkAckOk_1 = function checkAckOk_1(ackOk) {
8700
+ if (!ackOk) {
8701
+ _this.connectionStateMonitor.record(_utils_ConnectionStateMonitor__WEBPACK_IMPORTED_MODULE_11__["CONNECTION_CHANGE"].CONNECTION_FAILED);
8701
8702
 
8702
- function checkAckOk(ackOk) {
8703
- if (!ackOk) {
8704
- this.connectionStateMonitor.record(_utils_ConnectionStateMonitor__WEBPACK_IMPORTED_MODULE_11__["CONNECTION_CHANGE"].CONNECTION_FAILED);
8705
- rej(new Error("Connection timeout: ack from AWSRealTime was not received on " + _constants__WEBPACK_IMPORTED_MODULE_10__["CONNECTION_INIT_TIMEOUT"] + " ms"));
8706
- }
8703
+ rej(new Error("Connection timeout: ack from AWSAppSyncRealTime was not received after " + _constants__WEBPACK_IMPORTED_MODULE_10__["CONNECTION_INIT_TIMEOUT"] + " ms"));
8704
+ }
8705
+ };
8706
+
8707
+ setTimeout(function () {
8708
+ return checkAckOk_1(ackOk_1);
8709
+ }, _constants__WEBPACK_IMPORTED_MODULE_10__["CONNECTION_INIT_TIMEOUT"]);
8707
8710
  }
8708
8711
  });
8709
8712
  }()];