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
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)