onConnectionLost method

void onConnectionLost()

Marks the connection as lost.

The queue keeps the unacknowledged blobs (in-flight included): they are re-pushed after the next welcome.

Implementation

void onConnectionLost() {
  _handshaken = false;
  _queue.resetInFlight();
}