Description
We want to determine when the client receives the connection-change
event with state === ConnectionState.Connected
.
We would like to know whether this event was triggered only once or multiple times after losing the internet connection and successfully reconnecting.
References:
Thank you very much!
Which Web Video SDK version?
2.1.0
Hey @lmtruong1512
Thanks for your feedback.
If it’s the first time joining a session, the connecting-change
state transitions are:
→ Connected
: session joined successfully
→ Fail
: session join failed
If it’s a reconnecting scenario:
→ Reconnecting
→ Connected
: reconnecting succeeded
→ Reconnecting
→ Fail
: reconnecting failed
A session may experience multiple reconnecting events, depending on the network conditions or if the subsession feature is being used.
Thanks
Vic
1 Like
@vic.yang
Thank you for your answer!
In the case where there’s a network issue and the reconnection is successful:
→ Reconnecting
→ Connected
: reconnecting succeeded
We’re wondering whether the Connected
state is emitted only once, rather than multiple times.
Since we have some logic that runs when the Connected
state is received, we want to ensure it doesn’t get triggered multiple times unexpectedly.