uapp-communication-sdk 1.0.0-dev.95 → 1.0.0-dev.97
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/communication-sdk.cjs +1 -1
- package/communication-sdk.js +2721 -2713
- package/communication-sdk.standalone.js +149 -149
- package/package.json +1 -1
- package/types/features/calls/presentation/CallCenter.d.ts.map +1 -1
- package/types/features/calls/presentation/use-call-heartbeat.d.ts +24 -12
- package/types/features/calls/presentation/use-call-heartbeat.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallCenter.d.ts","sourceRoot":"","sources":["../../../../../../src/features/calls/presentation/CallCenter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAqB,MAAM,OAAO,CAAC;AAU7D;;;;GAIG;AACH,eAAO,MAAM,UAAU,QAAO,YAAY,GAAG,
|
|
1
|
+
{"version":3,"file":"CallCenter.d.ts","sourceRoot":"","sources":["../../../../../../src/features/calls/presentation/CallCenter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAqB,MAAM,OAAO,CAAC;AAU7D;;;;GAIG;AACH,eAAO,MAAM,UAAU,QAAO,YAAY,GAAG,IA0F5C,CAAC"}
|
|
@@ -1,26 +1,38 @@
|
|
|
1
|
+
import type { CallPhase } from '../store/call-store';
|
|
1
2
|
/**
|
|
2
|
-
* How often a client in a
|
|
3
|
+
* How often a client in a CONNECTED call reports that it is still there. Matches the backend's
|
|
3
4
|
* `CallConsts.HeartbeatIntervalSeconds` — the server's freshness and reclaim windows are sized as
|
|
4
5
|
* multiples of this, so the two must not drift apart.
|
|
5
6
|
*/
|
|
6
7
|
export declare const CALL_HEARTBEAT_INTERVAL_MS = 15000;
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
+
* The far faster cadence while a call is merely RINGING (`CallConsts.RingingHeartbeatIntervalSeconds`).
|
|
9
10
|
*
|
|
10
|
-
* <p
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
11
|
+
* <p>Ringing is short and rare, so the extra traffic is trivial; what it buys is the only thing that
|
|
12
|
+
* makes a caller's disappearance detectable in seconds rather than in most of a minute — the case where
|
|
13
|
+
* somebody closes the tab straight after dialling and the other person's phone rings on for a call with
|
|
14
|
+
* nobody behind it. During a conversation the opposite trade applies: it runs for minutes or hours, and
|
|
15
|
+
* beating fast would buy nothing.</p>
|
|
16
|
+
*/
|
|
17
|
+
export declare const CALL_RINGING_HEARTBEAT_INTERVAL_MS = 3000;
|
|
18
|
+
/**
|
|
19
|
+
* Keeps the server informed that this client is still on this call, and listens to what it says back.
|
|
20
|
+
*
|
|
21
|
+
* <p><b>Why it exists.</b> A call leaves its live states only when a client asks it to, and the cases
|
|
22
|
+
* that broke were the ones where no client can ask: both networks drop mid-call and both people go on
|
|
23
|
+
* reading as "in a call" indefinitely; or a caller closes the tab and the callee's phone rings on for a
|
|
24
|
+
* call nobody is behind. The server cannot observe the difference — a dropped connection looks exactly
|
|
25
|
+
* like a closed laptop, and the media runs through the provider where it cannot look at all. A beat is
|
|
26
|
+
* the only positive evidence it ever gets.</p>
|
|
15
27
|
*
|
|
16
28
|
* <p><b>And the other direction.</b> The reply says whether the call still exists. A call can end while
|
|
17
29
|
* this client is unreachable — the other party hung up during a blip, or the server reclaimed it — and
|
|
18
|
-
* the push announcing that reached nobody, with nothing to repeat it. Without reading the reply, a
|
|
19
|
-
* returning from a blip would hold a dead call on screen until the person closed it themselves.</p>
|
|
30
|
+
* the push announcing that reached nobody, with nothing to repeat it. Without reading the reply, a
|
|
31
|
+
* client returning from a blip would hold a dead call on screen until the person closed it themselves.</p>
|
|
20
32
|
*
|
|
21
33
|
* <p>A failed beat is deliberately NOT treated as evidence of anything. The network wobbling is exactly
|
|
22
|
-
* when beats fail, and tearing the call down on one lost request would end calls that are perfectly
|
|
23
|
-
* Only an explicit "this call is over" from the server ends anything here.</p>
|
|
34
|
+
* when beats fail, and tearing the call down on one lost request would end calls that are perfectly
|
|
35
|
+
* fine. Only an explicit "this call is over" from the server ends anything here.</p>
|
|
24
36
|
*/
|
|
25
|
-
export declare const useCallHeartbeat: (callId: string | null,
|
|
37
|
+
export declare const useCallHeartbeat: (callId: string | null, phase: CallPhase) => void;
|
|
26
38
|
//# sourceMappingURL=use-call-heartbeat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-call-heartbeat.d.ts","sourceRoot":"","sources":["../../../../../../src/features/calls/presentation/use-call-heartbeat.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-call-heartbeat.d.ts","sourceRoot":"","sources":["../../../../../../src/features/calls/presentation/use-call-heartbeat.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGrD;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,QAAS,CAAC;AAEjD;;;;;;;;GAQG;AACH,eAAO,MAAM,kCAAkC,OAAQ,CAAC;AAgBxD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,MAAM,GAAG,IAAI,EAAE,OAAO,SAAS,KAAG,IA4C1E,CAAC"}
|