sendSimulateScenario method

Future<void> sendSimulateScenario(
  1. {int? speakerUpdate,
  2. bool? nodeFailure,
  3. bool? migration,
  4. bool? serverLeave,
  5. bool? switchCandidate,
  6. bool? signalReconnect}
)

To be used for internal testing purposes only.

Implementation

Future<void> sendSimulateScenario({
  int? speakerUpdate,
  bool? nodeFailure,
  bool? migration,
  bool? serverLeave,
  bool? switchCandidate,
  bool? signalReconnect,
}) async {
  if (signalReconnect != null && signalReconnect) {
    await engine.signalClient.cleanUp();
    return;
  }
  engine.signalClient.sendSimulateScenario(
      speakerUpdate: speakerUpdate,
      nodeFailure: nodeFailure,
      migration: migration,
      serverLeave: serverLeave,
      switchCandidate: switchCandidate);
}