UNPKG

1.75 kBJavaScriptView Raw
1export var CONTROL_MSG;
2(function (CONTROL_MSG) {
3 CONTROL_MSG["CONNECTION_CLOSED"] = "Connection closed";
4 CONTROL_MSG["CONNECTION_FAILED"] = "Connection failed";
5 CONTROL_MSG["REALTIME_SUBSCRIPTION_INIT_ERROR"] = "AppSync Realtime subscription init error";
6 CONTROL_MSG["SUBSCRIPTION_ACK"] = "Subscription ack";
7 CONTROL_MSG["TIMEOUT_DISCONNECT"] = "Timeout disconnect";
8})(CONTROL_MSG || (CONTROL_MSG = {}));
9/** @enum {string} */
10export var ConnectionState;
11(function (ConnectionState) {
12 /*
13 * The connection is alive and healthy
14 */
15 ConnectionState["Connected"] = "Connected";
16 /*
17 * The connection is alive, but the connection is offline
18 */
19 ConnectionState["ConnectedPendingNetwork"] = "ConnectedPendingNetwork";
20 /*
21 * The connection has been disconnected while in use
22 */
23 ConnectionState["ConnectionDisrupted"] = "ConnectionDisrupted";
24 /*
25 * The connection has been disconnected and the network is offline
26 */
27 ConnectionState["ConnectionDisruptedPendingNetwork"] = "ConnectionDisruptedPendingNetwork";
28 /*
29 * The connection is in the process of connecting
30 */
31 ConnectionState["Connecting"] = "Connecting";
32 /*
33 * The connection is not in use and is being disconnected
34 */
35 ConnectionState["ConnectedPendingDisconnect"] = "ConnectedPendingDisconnect";
36 /*
37 * The connection is not in use and has been disconnected
38 */
39 ConnectionState["Disconnected"] = "Disconnected";
40 /*
41 * The connection is alive, but a keep alive message has been missed
42 */
43 ConnectionState["ConnectedPendingKeepAlive"] = "ConnectedPendingKeepAlive";
44})(ConnectionState || (ConnectionState = {}));
45//# sourceMappingURL=PubSub.js.map
\No newline at end of file