You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### How to best manage SDK connectivity to Microsoft infrastructure
48
48
49
-
The `Call Agent` instance helps you manage calls (to join or start calls). In order to work your calling SDK needs to connect to Microsoft infrastructure to get notifications of incoming calls and coordinate other call details. Sometimes the connection may fail be disconnected. To give you signal what the current state of your call `Call Agent`will be in 2 possible states:
49
+
The `Call Agent` instance helps you manage calls (to join or start calls). In order to work your calling SDK needs to connect to Microsoft infrastructure to get notifications of incoming calls and coordinate other call details. Your `Call Agent`has two possible states:
50
50
51
51
**Connected** - A `Call Agent` connectionStatue value of `Connected` means the client SDK is connected and capable of receiving notifications from Microsoft infrastructure.
52
52
53
-
**Disconnected** - A `Call Agent` connectionStatue value of `Disconnected`means there is an issue that is preventing the SDK it from properly connecting. `Call Agent` should be re-created.
54
-
-`invalidToken`: If a token expired or it's invalid `Call Agent` instance will disconnect with this error.
55
-
-`connectionIssue`: If there is an issue with the client connecting to Microsoft infrascture, after many retries `Call Agent`will fail to re-connect and expose the `connectionIssue` error.
53
+
**Disconnected** - A `Call Agent` connectionStatue value of `Disconnected`states there's an issue that is preventing the SDK it from properly connecting. `Call Agent` should be re-created.
54
+
-`invalidToken`: If a token expired or it's invalid `Call Agent` instance disconnects with this error.
55
+
-`connectionIssue`: If there's an issue with the client connecting to Microsoft infrascture, after many retries `Call Agent`exposes the `connectionIssue` error.
56
56
57
-
You can check if your local `Call Agent` is connected to Microsoft infrastrucue by inspecting the current value of `connectionState` property. During an active call you can listen to the `connectionStateChanged` event to determine if `Call Agent` changes from **Connected** to **Disconnected** state.
57
+
You can check if your local `Call Agent` is connected to Microsoft infrastructure by inspecting the current value of `connectionState` property. During an active call you can listen to the `connectionStateChanged` event to determine if `Call Agent` changes from **Connected** to **Disconnected** state.
0 commit comments