The documentation is inconsistent on what happens to watches after a
The web documentation states:
"Watches will not be received while disconnected from a server. When a
client reconnects, any previously registered watches will be
reregistered and triggered if needed. In general this all occurs
However the C API Doxygen documentation states:
" .... If the client is ever disconnected from the service, even if the
disconnection is temporary, the watches of the client will be removed from
the service, so a client must treat a disconnect notification as an implicit
trigger of all outstanding watches."
Which is correct? Looking at the C code, it appears that
"send_set_watches" is called after connection, apparently re-setting
any watches that were requested. It's not clear of those watches will
be automatically triggered if the watched data has changed.
Although not explicitly stated, I'm assuming that in case of an actual
session loss, all watches are lost and need to be re-created.