Table of Contents

Enum SimulateScenarioKind

Namespace
LiveKit.Proto
Assembly
LivekitRtc.dll

Simulate a reconnection scenario for testing. Mirrors the variants of livekit::SimulateScenario. The Resume / FullReconnect variants are the relevant ones for verifying that resume preserves publications and full reconnect republishes them exactly once.

public enum SimulateScenarioKind

Fields

[OriginalName("SIMULATE_DISCONNECT_SIGNAL_ON_RESUME")] SimulateDisconnectSignalOnResume = 8

Asks the server to drop the signalling connection during the next resume, then triggers a resume locally. The resume cannot complete, so the engine escalates to a full reconnect — exercising the resume→full escalation path.

[OriginalName("SIMULATE_FORCE_TCP")] SimulateForceTcp = 5
[OriginalName("SIMULATE_FORCE_TLS")] SimulateForceTls = 6
[OriginalName("SIMULATE_FULL_RECONNECT")] SimulateFullReconnect = 7

Asks the server to send LeaveRequest{Reconnect}, forcing a full reconnect (new RtcSession; SDK republishes existing local tracks).

[OriginalName("SIMULATE_MIGRATION")] SimulateMigration = 4
[OriginalName("SIMULATE_NODE_FAILURE")] SimulateNodeFailure = 2
[OriginalName("SIMULATE_SERVER_LEAVE")] SimulateServerLeave = 3
[OriginalName("SIMULATE_SIGNAL_RECONNECT")] SimulateSignalReconnect = 0

Closes the signal channel locally; engine attempts a Resume.

[OriginalName("SIMULATE_SPEAKER")] SimulateSpeaker = 1