@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.
- package/dist/aws-amplify-pubsub.js +10 -7
- package/dist/aws-amplify-pubsub.js.map +1 -1
- package/dist/aws-amplify-pubsub.min.js +2 -2
- package/dist/aws-amplify-pubsub.min.js.map +1 -1
- package/lib/Providers/AWSAppSyncRealTimeProvider/index.js +7 -7
- package/lib/Providers/AWSAppSyncRealTimeProvider/index.js.map +1 -1
- package/lib-esm/Providers/AWSAppSyncRealTimeProvider/index.js +7 -7
- package/lib-esm/Providers/AWSAppSyncRealTimeProvider/index.js.map +1 -1
- package/package.json +5 -5
- package/src/Providers/AWSAppSyncRealTimeProvider/index.ts +13 -13
|
@@ -8696,14 +8696,17 @@ function (_super) {
|
|
|
8696
8696
|
|
|
8697
8697
|
_this.awsRealTimeSocket.send(JSON.stringify(gqlInit));
|
|
8698
8698
|
|
|
8699
|
-
|
|
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
|
-
|
|
8703
|
-
|
|
8704
|
-
|
|
8705
|
-
|
|
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
|
}()];
|