OptionalautoplayRun advance() every tickMs while a job is active. Default false.
OptionalclockClock used for timestamps. Default: Date.now.
OptionallatencyArtificial latency (ms) applied before each result. Default 0, which
responds synchronously inside handleMessage.
OptionalprogressFraction of the file transferred per advance() step. Default 0.25.
OptionalschedulerScheduler used for deferred pushes. Default: setTimeout.
OptionalseedSeed for deterministic ids and fixture ordering. Default 1.
OptionalstepSimulated ms per step (consumes read wait budgets). Default 1000.
OptionaltickAutoplay interval in ms. Default stepMs.
Factory options for the torrent mock.
Example