static init() async {
// there will always be one HTTP client
try {
rCash = await RhttpCompatibleClient.create(
interceptors: [TimeInterceptor()],
settings: ClientSettings(
httpVersionPref: HttpVersionPref.all,
timeoutSettings: TimeoutSettings(
timeout: Duration(seconds: 5),
connectTimeout: Duration(seconds: 5),
keepAliveTimeout: Duration(seconds: 5),
),
throwOnStatusCode: false,
)
);
} catch (e) {
print("RHTTP RECONNECTION EXCEPTION");
print(e.toString());
}
}
if(exception is RhttpClientDisposedException) {
await HTTP3.init();
}
on getting the exception still the APICalls from rCash don't work. Please help