@marketrix.ai/widget 3.8.464 → 3.8.465
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/src/services/StreamClient.d.ts +3 -4
- package/dist/widget.mjs +32 -32
- package/dist/widget.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type WidgetCommand, type WidgetEvent } from '../sdk';
|
|
2
|
-
export type StreamStatus = 'disconnected' | 'connecting' | 'connected' | 'registered' | 'error';
|
|
3
2
|
/** The stream has stopped retrying, so nothing further will arrive for anything still in flight. */
|
|
4
3
|
export declare class StreamGaveUpError extends Error {
|
|
5
4
|
}
|
|
@@ -13,7 +12,7 @@ export declare class StreamClient {
|
|
|
13
12
|
private chatId;
|
|
14
13
|
private status;
|
|
15
14
|
private callbacks;
|
|
16
|
-
private
|
|
15
|
+
private reconnectSuppressed;
|
|
17
16
|
private reconnectAttempts;
|
|
18
17
|
private readonly maxReconnectAttempts;
|
|
19
18
|
private reconnectDelay;
|
|
@@ -27,8 +26,8 @@ export declare class StreamClient {
|
|
|
27
26
|
addCallbacks(callbacks: StreamClientCallbacks): void;
|
|
28
27
|
removeCallbacks(callbacks: StreamClientCallbacks): void;
|
|
29
28
|
isConnected(): boolean;
|
|
30
|
-
/** Whether a user-driven retry can achieve anything: there is a chat to rejoin and
|
|
31
|
-
*
|
|
29
|
+
/** Whether a user-driven retry can achieve anything: there is a chat to rejoin and nothing has
|
|
30
|
+
* suppressed reconnection. */
|
|
32
31
|
canReconnect(): boolean;
|
|
33
32
|
/** The user asked to retry. `scheduleReconnect` gives up permanently at `maxReconnectAttempts` and only
|
|
34
33
|
* `registered` resets the counters, so without this reset the widget's Retry button had nothing it
|