Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Apr 2009
    Location
    London
    Posts
    2

    Question LS Flex Client is stalled on restart of LS server

    Hi there!

    The flex client subscribes in "MERGE" mode. When the LS server is stopped, it tries to reconnect every 5 seconds. When the server is up again, it reconnects and gets the data from the server but the data is not displayed.

    I face this problem only on reconnection. Normally, everything is working fine.

    Is there any issue in LS Client/Flex or are any configurations needed?

    Thanks in advance!

    Regards,
    Pratik

  2. #2
    Member
    Join Date
    Apr 2009
    Location
    London
    Posts
    2

    Unsubscription event issue

    I found out the issue.

    When the LS server goes down, the Unsubscription event is thrown. In my code, on this event, all event handlers were unregistered. Hence, when connection was up, data did come but nobody 'handled' the data.

    I added the logic to check for disconnect ( can be done using statusChange event) and not to unregister the event handlers in this case ( keep on trying to reconnect after 5 seconds and if succesful handle the updates)

  3. #3
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    Hi Pratik,

    The Flex Client library for Lightstreamer handles disconnection/reconnections/resubscriptions in a totally automatic way. So you should do nothing at all. You just may want to intercept the statusChange event with the purpose of notifying the user of the current state, but not to attempt some manual recovery, which is not necessary at all.

  4. #4
    Hi Alessandro,

    How and where we can intercept statusChange event with the purpose of notifying the user of the current state. we are using flex client
    and want to notify user in case network is down or disconnected.

  5. #5
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi mhasan,

    Please could you refer for your question to my reply in this thread?

    Thank you,
    Giuseppe

 

 

Similar Threads

  1. Restart Lightstreamer Server while browser open !!
    By mohamida in forum Adapter SDKs
    Replies: 9
    Last Post: April 21st, 2010, 09:17 PM
  2. Updates dropped when restart is performed
    By ctranfd in forum Client SDKs
    Replies: 3
    Last Post: June 5th, 2009, 12:45 PM
  3. LSEngine is getting stalled
    By dkumarbabu in forum Client SDKs
    Replies: 2
    Last Post: August 6th, 2008, 10:32 PM
  4. HTTPS & Flex Client
    By venkihere in forum Client SDKs
    Replies: 13
    Last Post: October 22nd, 2007, 06:01 PM
  5. Flex Client API now generally available
    By Alessandro in forum Client SDKs
    Replies: 0
    Last Post: September 3rd, 2007, 05:23 PM

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 12:34 PM.