Creates a reconnect function and reconnect flag for tracking purposes.
1.2.0