chore: Add simulate for candidate protocol switch. (#176)

This commit is contained in:
CloudWebRTC
2022-09-20 17:47:38 +08:00
committed by GitHub
parent e106ce9308
commit a60a2e861c
4 changed files with 9 additions and 0 deletions
+1
View File
@@ -174,5 +174,6 @@ enum SimulateScenarioResult {
nodeFailure,
migration,
serverLeave,
switchCandidate,
clear,
}
+2
View File
@@ -222,6 +222,8 @@ class _ControlsWidgetState extends State<ControlsWidget> {
nodeFailure: result == SimulateScenarioResult.nodeFailure ? true : null,
migration: result == SimulateScenarioResult.migration ? true : null,
serverLeave: result == SimulateScenarioResult.serverLeave ? true : null,
switchCandidate:
result == SimulateScenarioResult.switchCandidate ? true : null,
);
}
}