disconnectionHandler static method
Implementation
static Future disconnectionHandler(void Function() callback) async {
await removeDisconnectionHandler();
disconnectSub = RTClient.streamController.listen((event) {
if (event == 'disconnect') {
callback.call();
}
});
}