@codingfactory/messenger-client 0.4.14 → 0.4.15

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,3 +1,12 @@
1
+ export interface GlobalMessagingOptions {
2
+ /**
3
+ * When false, the composable skips its internal 30-second setInterval poll.
4
+ * Set to false when the host app already polls via its own loop (e.g.
5
+ * TabsLayout's connection-aware polling with exponential backoff).
6
+ * @default true
7
+ */
8
+ enablePolling?: boolean;
9
+ }
1
10
  /**
2
11
  * Subscribes to a bounded set of the current user's most recent conversation
3
12
  * channels so incoming messages can update unread counts without auth-bursting
@@ -9,4 +18,4 @@
9
18
  *
10
19
  * Usage: call once in TabsLayout (the root authenticated layout).
11
20
  */
12
- export declare function useGlobalMessaging(): void;
21
+ export declare function useGlobalMessaging(options?: GlobalMessagingOptions): void;