Question regarding Disconnect method

Dec 3, 2015 at 5:04 AM
In the code which handles the session disconnect, you set up a timer to perform the reconnection as per this comment.
        reconnect = true;  // We can't reconnect in the disconnect event, so we set a flag for the timer to pick this up and check all the connections
I have seen other example code that reconnects immediately with code like this:

            private void OnDisconnect(object sender, SubscriptionErrorEventArgs args)
                // Cast the sender as a StreamingSubscriptionConnection object.
                StreamingSubscriptionConnection connection = (StreamingSubscriptionConnection)sender;
Is there a problem immedately reconnection after a disconnect. If you rely on a timer then you risk missing events do you not?