@tak-ps/cloudtak 13.36.1 → 13.37.0
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.
|
@@ -15,6 +15,7 @@ export declare enum WorkerMessageType {
|
|
|
15
15
|
Channels_List = "channels:list",
|
|
16
16
|
Connection_Open = "connection:open",
|
|
17
17
|
Connection_Close = "connection:close",
|
|
18
|
+
Connection_AuthFailure = "connection:authfailure",
|
|
18
19
|
Mission_Change_Feature = "mission:change:feature",
|
|
19
20
|
Mission_Invite = "mission:invite",
|
|
20
21
|
Channel_Change = "channel:change",
|
|
@@ -25,6 +25,7 @@ export declare const useAppStore: import("pinia").StoreDefinition<"cloudtak-app"
|
|
|
25
25
|
applyTheme(style?: string): void;
|
|
26
26
|
routeLogin(): Promise<void>;
|
|
27
27
|
refreshLogin(): Promise<void>;
|
|
28
|
+
sessionExpired(): Promise<void>;
|
|
28
29
|
logout(): Promise<void>;
|
|
29
30
|
bootstrap(): Promise<boolean>;
|
|
30
31
|
teardown(): void;
|
|
@@ -4,12 +4,18 @@ export default class AtlasConnection {
|
|
|
4
4
|
isDestroyed: boolean;
|
|
5
5
|
isOpen: boolean;
|
|
6
6
|
hasConnected: boolean;
|
|
7
|
+
authFailure: boolean;
|
|
7
8
|
ws: WebSocket | undefined;
|
|
8
9
|
reconnectAttempts: number;
|
|
9
10
|
version: string;
|
|
11
|
+
private reconnectTimer;
|
|
10
12
|
constructor(atlas: Atlas);
|
|
11
13
|
reconnect(connection: string): void;
|
|
12
14
|
connect(connection: string): void;
|
|
15
|
+
private scheduleReconnect;
|
|
16
|
+
private isAuthRejected;
|
|
17
|
+
private handleAuthFailure;
|
|
18
|
+
private clearReconnectTimer;
|
|
13
19
|
destroy(): void;
|
|
14
20
|
sendCOT(data: object, type?: string): void;
|
|
15
21
|
}
|