Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve reconnect logic for websocket #406

Merged
merged 42 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
ca2bc19
Capture possible exceptions when closing the room at any time and the…
cloudwebrtc Nov 18, 2023
7c0dfc4
fix.
cloudwebrtc Nov 20, 2023
610cf1f
imporve reconnect logic.
cloudwebrtc Nov 23, 2023
44551ff
fix canReconnect logic on SignalLeaveEvent.
cloudwebrtc Nov 23, 2023
ba47a1c
Monitor Connectivity changes and automatically reconnect.
cloudwebrtc Nov 23, 2023
7e83ecc
update.
cloudwebrtc Nov 23, 2023
005950e
Improve PCs reconnection speed.
cloudwebrtc Nov 24, 2023
0488642
support Manual subscription.
cloudwebrtc Nov 27, 2023
dab2673
update.
cloudwebrtc Nov 27, 2023
280f121
simple grid view for test.
cloudwebrtc Nov 27, 2023
2dd4b9a
update pubspec.
cloudwebrtc Nov 27, 2023
c8b1248
Fixed handleParticipantDisconnect not emitting for existing partcicpant.
cloudwebrtc Nov 27, 2023
706718e
Trigger full Reconnect when peerConnection Failed.
cloudwebrtc Nov 27, 2023
3bd67fa
update grid view.
cloudwebrtc Nov 28, 2023
64cbccc
add checkIfDesposed.
cloudwebrtc Nov 28, 2023
c78308c
Merge branch 'main' into improve-reconnect-logic-for-websocket
cloudwebrtc Nov 30, 2023
79a9b32
Merge branch 'main' into improve-reconnect-logic-for-websocket
cloudwebrtc Dec 8, 2023
8ddbf04
update.
cloudwebrtc Dec 8, 2023
453508e
remove checkIfDisposed.
cloudwebrtc Dec 8, 2023
2cd9aa7
fixed rendering exception.
cloudwebrtc Dec 8, 2023
25b6065
Merge branch 'main' into improve-reconnect-logic-for-websocket
cloudwebrtc Dec 11, 2023
94269b4
update.
cloudwebrtc Dec 12, 2023
6cdc4ff
Merge branch 'main' into improve-reconnect-logic-for-websocket
cloudwebrtc Dec 14, 2023
49f686a
update.
cloudwebrtc Dec 18, 2023
121a95d
fix flutter analyze.
cloudwebrtc Dec 18, 2023
763cf0b
fix reconnect test.
cloudwebrtc Dec 18, 2023
38c4d2c
update.
cloudwebrtc Dec 18, 2023
295a318
update.
cloudwebrtc Dec 18, 2023
8c97106
revert changes for example app.
cloudwebrtc Dec 20, 2023
41c0e57
update.
cloudwebrtc Dec 20, 2023
c1a141f
Refactored reconnect logic to support connectivity/network change che…
cloudwebrtc Dec 20, 2023
3afd543
update.
cloudwebrtc Dec 20, 2023
c5cac2f
update.
cloudwebrtc Dec 20, 2023
eff4dac
cleanup.
cloudwebrtc Dec 20, 2023
d04bbf4
cleanup.
cloudwebrtc Dec 20, 2023
eed2d45
sendLeave for room.disconnect.
cloudwebrtc Dec 20, 2023
50c2103
fix for web.
cloudwebrtc Dec 20, 2023
b972131
fix for web.
cloudwebrtc Dec 20, 2023
26ba3d9
dart run import_sorter:main.
cloudwebrtc Dec 20, 2023
8af1532
update.
cloudwebrtc Dec 21, 2023
102fdeb
Merge branch 'main' into improve-reconnect-logic-for-websocket
cloudwebrtc Dec 21, 2023
c0f1ce6
fix.
cloudwebrtc Dec 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion example/lib/exts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,14 @@ extension LKExampleExt on BuildContext {

enum SimulateScenarioResult {
signalReconnect,
fullReconnect,
speakerUpdate,
nodeFailure,
migration,
serverLeave,
switchCandidate,
clear,
e2eeKeyRatchet,
participantName,
participantMetadata,
clear,
}
2 changes: 2 additions & 0 deletions example/lib/pages/room.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ class _RoomPageState extends State<RoomPage> {
})
..on<LocalTrackPublishedEvent>((_) => _sortParticipants())
..on<LocalTrackUnpublishedEvent>((_) => _sortParticipants())
..on<TrackSubscribedEvent>((_) => _sortParticipants())
..on<TrackUnsubscribedEvent>((_) => _sortParticipants())
..on<TrackE2EEStateEvent>(_onE2EEStateEvent)
..on<ParticipantNameUpdatedEvent>((event) {
print(
Expand Down
4 changes: 4 additions & 0 deletions example/lib/widgets/controls.dart
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,12 @@ class _ControlsWidgetState extends State<ControlsWidget> {
}

await widget.room.sendSimulateScenario(
speakerUpdate:
result == SimulateScenarioResult.speakerUpdate ? 3 : null,
signalReconnect:
result == SimulateScenarioResult.signalReconnect ? true : null,
fullReconnect:
result == SimulateScenarioResult.fullReconnect ? true : null,
nodeFailure: result == SimulateScenarioResult.nodeFailure ? true : null,
migration: result == SimulateScenarioResult.migration ? true : null,
serverLeave: result == SimulateScenarioResult.serverLeave ? true : null,
Expand Down
4 changes: 1 addition & 3 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@ dependencies:
flutter_svg: ^2.0.5
dropdown_button2: ^2.3.6
flutter_window_close: ^0.2.2
collection: '>=1.16.0'

livekit_client:
path: ../
# git:
# url: https://github.com/livekit/client-sdk-flutter
# ref: main

dev_dependencies:
flutter_test:
Expand Down
Loading
Loading