Hi,
If error happens in subscription / unsubscription process due to server/network problem, does LS client auto retry to subscribe/unsubscribe? If not, what is best practice for that?
Thanks,
Printable View
Hi,
If error happens in subscription / unsubscription process due to server/network problem, does LS client auto retry to subscribe/unsubscribe? If not, what is best practice for that?
Thanks,
as long as a Subscription is passed to a LightstreamerClient through subscribe, and is not removed through unsubscribe, the client will automatically handle network problems and will re-subscribe your items.
You should obviously handle onSubscriptionError events: these can't be automatically solved by the client.
Thanks Mone,
How about unsubscription process? There is no onUnsubscriptionError event.
Hi,
the subscriptionError handles server-side errors, not networok errors as those are handled by the library.
an unsubscription can't fail on the server so there is no need for an onUnsubscriptionError.