drop method
void
drop()
Simulates losing the network, as if the cable was pulled.
Unlike disconnect, the broker publishes the last will.
Implementation
void drop() {
if (_state != TransportState.connected) return;
final will = _lastWill;
_leave();
if (will != null) broker._publish(will);
}