-
April 8th, 2009, 02:07 PM
#1
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
-
April 8th, 2009, 04:42 PM
#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)
-
April 9th, 2009, 11:30 AM
#3
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.
-
June 25th, 2015, 08:10 AM
#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.
-
June 26th, 2015, 09:56 AM
#5
Hi mhasan,
Please could you refer for your question to my reply in this thread?
Thank you,
Giuseppe
Similar Threads
-
By mohamida in forum Adapter SDKs
Replies: 9
Last Post: April 21st, 2010, 09:17 PM
-
By ctranfd in forum Client SDKs
Replies: 3
Last Post: June 5th, 2009, 12:45 PM
-
By dkumarbabu in forum Client SDKs
Replies: 2
Last Post: August 6th, 2008, 10:32 PM
-
By venkihere in forum Client SDKs
Replies: 13
Last Post: October 22nd, 2007, 06:01 PM
-
By Alessandro in forum Client SDKs
Replies: 0
Last Post: September 3rd, 2007, 05:23 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 01:38 PM.
Bookmarks