Replies: 1 comment
|
Hi @blatda David!
Subscription? _subscription = null;
_subscription = await _kContext.CreateQuery<T>(queryStreamParameters)
.SubscribeAsync(onNext: value =>
{
}, onError: async error =>
{
await restApiProvider.TerminatePushQueryAsync(subscription!.QueryId, cts.Token);
},
onCompleted: () => { }, cts.Token);Is the
Thank you very much for your appreciation! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have a push query running through:
_subscription = _kContext.CreateQuery<T>(queryStreamParameters).ToObservable().Subscribe(monitor);If the connection to the kSqlDB is lost, the
OnErrormethod is invoked and the push query keeps running on the server and cannot be reconnected.Is there any strategy to:
What I'm actually supposed to do inside the OnError method?
Thanks for the Client library, that's an extraordinary contribution to the kSqlDb community! :-)
All reactions