Session migration (#72)
* impl * retry logic * simulate * pass checks * adjust log level * retry condition * fix simulate scenario params * format * use `RTCPeerConnectionState` instead of `RTCIceConnectionState` * adjust retry * additional check for completer * more logging * fix id * pub * change package * doc update * retry tests * format * apply suggestions
This commit is contained in:
@@ -154,4 +154,25 @@ extension LKExampleExt on BuildContext {
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
Future<SimulateScenarioResult?> showSimulateScenarioDialog() =>
|
||||
showDialog<SimulateScenarioResult>(
|
||||
context: this,
|
||||
builder: (ctx) => SimpleDialog(
|
||||
title: const Text('Simulate Scenario'),
|
||||
children: SimulateScenarioResult.values
|
||||
.map((e) => SimpleDialogOption(
|
||||
child: Text(e.name),
|
||||
onPressed: () => Navigator.pop(ctx, e),
|
||||
))
|
||||
.toList(),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
enum SimulateScenarioResult {
|
||||
nodeFailure,
|
||||
migration,
|
||||
serverLeave,
|
||||
clear,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user