reconnect method
void
reconnect()
Try to Reconnect SignalR connection if it gets disconnected.
Implementation
void reconnect() async {
try {
await _channel.invokeMethod("reconnect");
} on PlatformException catch (ex) {
print("Platform Error: ${ex.message}");
return Future.error(ex.message!);
} on Exception catch (ex) {
print("Error: ${ex.toString()}");
return Future.error(ex.toString());
}
}