Page 1 of 1
Order of Connection events
Posted: 19 Dec 2013, 08:27
by clam61
When a connection has issues, a CONNECTION_RETRY event is fired, but is CONNECTION_LOST fired at this time too? At what point does the CONNECTION_LOST event fire? When the single CONNECTION_RETRY attempt fails?
Re: Order of Connection events
Posted: 19 Dec 2013, 09:13
by Bax
If you use the HRC system, the CONNECTION_LOST is fired if HRC is unable to re-establish a dropped connection. Otherwise a CONNECTION_RESUME will be fired.
In other words, with HRC "off" you get the CONNECTION_LOST event immediately.
With HRC "on" you get the CONNECTION_RETRY event followed by either CONNECTION_RESUME or CONNECTION_LOST, whether the connection was resumed successfully or not.
Re: Order of Connection events
Posted: 21 Dec 2013, 22:10
by clam61
Thanks Paolo
If HRC is on and connection resume is successful, is the user still logged in like before? is his buddy list still in tact (does not need to be initialized again)
Re: Order of Connection events
Posted: 22 Dec 2013, 10:09
by Lapo
Yes, once you are reconnected you keep the same state as before and you will receive all the messages that were kept on the server side while you where away (messages, events etc...)
cheers