connectionErrorHandler static method

Future connectionErrorHandler(
  1. void callback()
)

Implementation

static Future connectionErrorHandler(void Function() callback) async {
  await removeConnectionErrorHandler();

  connectErrorSub = RTClient.streamController.listen((event) {
    if (event == 'connect_error') {
      callback.call();
    }
  });
}