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
Improve disconnect vs reconnect reliability (#761)
Resolves#757
- Adds cancellation to reconnect, making sure that it cannot continue
after `disconnect()` and bring the room back to life
- ⚠️ Optionally, we can introduce a breaking `.disconnecting` state to
prevent new tasks from being started (vs cancelling ongoing tasks - a
little _less elegant_)
- Theoretically it should not affect other state transitions, as
`disconnect()` is basically "destructive" - the only valid path leads to
`.disconnected` during `cleanup()`, however that's not statically
enforced in any way
- On the other hand, it does not provide any added value for other parts
of the SDK, just covering this tiny time window
0 commit comments