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
CB2) Apps that use SDK and as a result user interface:
Clients see no changes so for ~29 seconds user can observe that everything is OK and only during last second user can see reconnecting state.
Expected behaviour:
SDK changes ConnectionState to reconnecting as early as possible.
Proposed updates:
switch to reconnecting state after first quick reconnect
or expose ReconnectMode as delegate and/or publisher. So clients can observe and react to it
or may be add more ConnectionState - quickReconnecting and fullReconnecting
or any other options that can help to get reconnect info without any SDK hacks.
The text was updated successfully, but these errors were encountered:
Environment:
SDK version: 2.0.19
iOS: any
Reproduces on minimal UIKit SDK example: yes
Steps to reproduce:
Current behaviour (CB):
CB1) SDK:
30 retries every ~second and disconnect after ~30 seconds. Under the hood: SDK makes 29 quick reconnects.
Logs
... 2025-02-25T15:03:55+0300 debug LiveKitSDK : [LiveKit] Room.startReconnect(reason:nextReconnectMode:) [Connect] Retry in 1.0 seconds, 26/30 tries left. 2025-02-25T15:03:55+0300 debug LiveKitSDK : [LiveKit] Room.quickReconnectSequence() [Connect] Starting .quick reconnect sequence... ...and last one as full reconnect. SDK switches ConnectionState to reconnecting only when full reconnect is performed.
Logs
... 2025-02-25T15:03:59+0300 debug LiveKitSDK : [LiveKit] Room.startReconnect(reason:nextReconnectMode:) [Connect] Retry in 1.0 seconds, 30/30 tries left. 2025-02-25T15:03:59+0300 debug LiveKitSDK : [LiveKit] Room.init(delegate:connectOptions:roomOptions:) connectionState: .connected -> .connected, reconnectMode: Optional(.full) 2025-02-25T15:03:59+0300 debug LiveKitSDK : [LiveKit] Room.fullReconnectSequence() [Connect] starting .full reconnect sequence... 2025-02-25T15:03:59+0300 debug LiveKitSDK : [LiveKit] Room.init(delegate:connectOptions:roomOptions:) connectionState: .connected -> .reconnecting, reconnectMode: Optional(.full) 2025-02-25T15:03:59+0300 debug LiveKitSDK : [LiveKit] Room.cleanUp(withError:isFullReconnect:) withError: nil, isFullReconnect: true ...CB2) Apps that use SDK and as a result user interface:
Clients see no changes so for ~29 seconds user can observe that everything is OK and only during last second user can see reconnecting state.
Expected behaviour:
SDK changes ConnectionState to reconnecting as early as possible.
Proposed updates:
The text was updated successfully, but these errors were encountered: