@aslaluroba/help-center-react 3.2.4 → 3.2.5

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.
@@ -1,13 +1,16 @@
1
+ type ActionHandlerCallback = (actionType: string | undefined | null, messageData: any) => void | Promise<void>;
1
2
  export declare class ClientAblyService {
2
3
  private static client;
3
4
  private static channel;
4
5
  private static isConnected;
5
6
  private static sessionId;
6
7
  private static messageUnsubscribe;
7
- static startConnection(sessionId: string, ablyToken: string, onMessageReceived: Function, tenantId: string): Promise<void>;
8
+ private static onActionReceived;
9
+ static startConnection(sessionId: string, ablyToken: string, onMessageReceived: Function, tenantId: string, onActionReceived?: ActionHandlerCallback): Promise<void>;
8
10
  private static joinChannel;
9
11
  static stopConnection(): Promise<void>;
10
12
  static isConnectionActive(): boolean;
11
13
  static getConnectionState(): string;
12
14
  static sendMessage(messageContent: string, senderType?: number): Promise<void>;
13
15
  }
16
+ export {};