disconnectionHandler static method

Future disconnectionHandler(
  1. void callback()
)

Implementation

static Future disconnectionHandler(void Function() callback) async {
  await removeDisconnectionHandler();

  disconnectSub = RTClient.streamController.listen((event) {
    if (event == 'disconnect') {
      callback.call();
    }
  });
}