connectionHandler static method
Implementation
static Future connectionHandler(void Function() callback) async {
await removeConnectionHandler();
connectSub = RTClient.streamController.listen((event) {
if (event == 'connect') {
callback.call();
}
});
}