Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Jul 2013
    Posts
    39

    Subscribe / unsubscribe error recovery

    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,

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    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.

  3. #3
    Senior Member
    Join Date
    Jul 2013
    Posts
    39
    Thanks Mone,

    How about unsubscription process? There is no onUnsubscriptionError event.

  4. #4
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    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.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 11:26 PM.