@codingfactory/messenger-client 0.2.9 → 0.2.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/index.js +1880 -1860
- package/dist/services/echo.d.ts +2 -0
- package/dist/services/messengerEcho.d.ts +1 -0
- package/package.json +1 -1
package/dist/services/echo.d.ts
CHANGED
|
@@ -78,6 +78,7 @@ export interface ConversationSubscriptionCallbacks {
|
|
|
78
78
|
export interface EchoRuntimeConfig {
|
|
79
79
|
initializedEvent?: string;
|
|
80
80
|
getEcho?: () => EchoClient | null;
|
|
81
|
+
waitForEcho?: () => Promise<EchoClient | null>;
|
|
81
82
|
getConnectionStatus?: () => ConnectionStatus;
|
|
82
83
|
getAccessState?: () => MessagingAccessState;
|
|
83
84
|
onConnectionStatusChange?: (callback: (status: ConnectionStatus) => void) => () => void;
|
|
@@ -92,6 +93,7 @@ export interface EchoRuntimeConfig {
|
|
|
92
93
|
}
|
|
93
94
|
export declare const getEchoInitializedEvent: () => string;
|
|
94
95
|
export declare const getEcho: () => EchoClient | null;
|
|
96
|
+
export declare const waitForEcho: () => Promise<EchoClient | null>;
|
|
95
97
|
export declare const getEchoConnectionStatus: () => ConnectionStatus;
|
|
96
98
|
export declare const getConnectionStatus: () => ConnectionStatus;
|
|
97
99
|
export declare const getMessagingAccessState: () => MessagingAccessState;
|
|
@@ -41,6 +41,7 @@ export interface CreateMessengerEchoOptions {
|
|
|
41
41
|
export interface MessengerEchoRuntime extends EchoRuntimeConfig {
|
|
42
42
|
apiClient: MessagingHttpClient;
|
|
43
43
|
getEcho(): EchoClient | null;
|
|
44
|
+
waitForEcho(): Promise<EchoClient | null>;
|
|
44
45
|
getConnectionStatus(): ConnectionStatus;
|
|
45
46
|
getAccessState(): MessagingAccessState;
|
|
46
47
|
reconnect(): Promise<void>;
|