pratik 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
pratik 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)
Alessandro Alinone 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.
mhasan 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.
Giuseppe Corti Hi mhasan, Please could you refer for your question to my reply in this thread? Thank you, Giuseppe