reset

fun reset(state: ConnectionState = ConnectionState.Disconnected, epochs: ConnectionEpochs? = null)(source)

Restores a known state, primarily for reusable test fakes. Epoch counters remain monotonic: omitting epochs applies the canonical transition into state, while an explicit value may only advance the counters. The publication version always advances so readers can distinguish the reset from the preceding snapshot.