> > In the case of reconnection, is it at least guaranteed you'll get some > kind of client notification about the connection state, so you can > reset any application state that relies on watchers being notified? > Like, you may not see a node changed during the disconnected state, > but will you at least get a connected notification from the persistent > watcher?
Yes, the Disconnected state is notified. Resetting application state can be very expensive, so the preference is getting the missing events via watch notification. Or do you have to rely on the connection status watcher set > when the client was created to see those? No, we don't rely on the default watch to get a Disconnected state notification.