@ethora/chat-component 25.7.9 → 25.7.11
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/main.d.ts +1 -0
- package/dist/main.js +3836 -3718
- package/dist/main.js.map +1 -1
- package/dist/networking/xmppClient.d.ts +7 -0
- package/dist/utils/clientRegistry.d.ts +10 -0
- package/dist/utils/resendMessage.d.ts +10 -0
- package/package.json +1 -1
|
@@ -31,6 +31,11 @@ export declare class XmppClient implements XmppClientInterface {
|
|
|
31
31
|
lastActivityTs: number;
|
|
32
32
|
pingInFlight: boolean;
|
|
33
33
|
private idlePingTimeout;
|
|
34
|
+
private reconnectTimer;
|
|
35
|
+
private offlineReconnectAttempts;
|
|
36
|
+
private maxOfflineReconnectAttempts;
|
|
37
|
+
private reconnectBaseDelayMs;
|
|
38
|
+
private pausedDueToOfflineCap;
|
|
34
39
|
constructor(username: string, password: string, xmppSettings?: xmppSettingsInterface);
|
|
35
40
|
initializeClient(): Promise<void>;
|
|
36
41
|
disconnect(): Promise<void>;
|
|
@@ -81,5 +86,7 @@ export declare class XmppClient implements XmppClientInterface {
|
|
|
81
86
|
handlePong(): void;
|
|
82
87
|
handlePingTimeout(): void;
|
|
83
88
|
private drainHeap;
|
|
89
|
+
private isBrowserOnline;
|
|
90
|
+
private scheduleReconnect;
|
|
84
91
|
}
|
|
85
92
|
export default XmppClient;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as XmppClient } from '../networking/xmppClient';
|
|
2
|
+
export declare function setGlobalXmppClient(client: XmppClient | null): void;
|
|
3
|
+
export declare function getGlobalXmppClient(): XmppClient | null;
|
|
4
|
+
export declare function requireXmppClient(): XmppClient;
|
|
5
|
+
declare const _default: {
|
|
6
|
+
setGlobalXmppClient: typeof setGlobalXmppClient;
|
|
7
|
+
getGlobalXmppClient: typeof getGlobalXmppClient;
|
|
8
|
+
requireXmppClient: typeof requireXmppClient;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IMessage } from '../types/types';
|
|
2
|
+
type ResendOptions = {
|
|
3
|
+
respectTranslateConfig?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare function resendMessage(message: Pick<IMessage, 'body' | 'roomJid'> & {
|
|
6
|
+
isReply?: boolean;
|
|
7
|
+
showInChannel?: string;
|
|
8
|
+
mainMessage?: string;
|
|
9
|
+
}, options?: ResendOptions): Promise<string>;
|
|
10
|
+
export default resendMessage;
|