principalChanged method

void principalChanged()

Tells the transport the principal is changing. Disarms the armed failure and aborts every request still waiting out simulated latency, so none is sent afterwards. The mode and the latency stay. Devtools calls this synchronously from the principal-changing notification.

Implementation

void principalChanged() {
  _epoch++;
  disarm();
}