@aws-amplify/api-graphql 2.3.14-unstable.4 → 2.3.14-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.
@@ -12298,14 +12298,17 @@ function (_super) {
12298
12298
 
12299
12299
  _this.awsRealTimeSocket.send(JSON.stringify(gqlInit));
12300
12300
 
12301
- setTimeout(checkAckOk.bind(_this, ackOk_1), _constants__WEBPACK_IMPORTED_MODULE_10__["CONNECTION_INIT_TIMEOUT"]);
12302
- }
12301
+ var checkAckOk_1 = function checkAckOk_1(ackOk) {
12302
+ if (!ackOk) {
12303
+ _this.connectionStateMonitor.record(_utils_ConnectionStateMonitor__WEBPACK_IMPORTED_MODULE_11__["CONNECTION_CHANGE"].CONNECTION_FAILED);
12303
12304
 
12304
- function checkAckOk(ackOk) {
12305
- if (!ackOk) {
12306
- this.connectionStateMonitor.record(_utils_ConnectionStateMonitor__WEBPACK_IMPORTED_MODULE_11__["CONNECTION_CHANGE"].CONNECTION_FAILED);
12307
- rej(new Error("Connection timeout: ack from AWSRealTime was not received on " + _constants__WEBPACK_IMPORTED_MODULE_10__["CONNECTION_INIT_TIMEOUT"] + " ms"));
12308
- }
12305
+ rej(new Error("Connection timeout: ack from AWSAppSyncRealTime was not received after " + _constants__WEBPACK_IMPORTED_MODULE_10__["CONNECTION_INIT_TIMEOUT"] + " ms"));
12306
+ }
12307
+ };
12308
+
12309
+ setTimeout(function () {
12310
+ return checkAckOk_1(ackOk_1);
12311
+ }, _constants__WEBPACK_IMPORTED_MODULE_10__["CONNECTION_INIT_TIMEOUT"]);
12309
12312
  }
12310
12313
  });
12311
12314
  }()];