onFailure method

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

Called by the XmppConnection when the reconnection failed.

Implementation

@override
Future<void> onFailure() async {
  await Future<void>.delayed(Duration(seconds: _sleepAmount));
  await performReconnect!();
}