connectionHandler static method

Future connectionHandler(
  1. void callback()
)

Implementation

static Future connectionHandler(void Function() callback) async {
  await removeConnectionHandler();

  connectSub = RTClient.streamController.listen((event) {
    if (event == 'connect') {
      callback.call();
    }
  });
}