disconnect method

  1. @override
Future<void> disconnect()
override

Disconnect and unbind all the bindings.

Implementation

@override
Future<void> disconnect() async {
  logger.detail('Disconnecting from server');
  for (var i = 0; i < 10; i++) {
    send(Disconnect());
  }
  _cleanup();
  return super.disconnect();
}