if client disconnecting, necessary unsubscribe beforehand?
i thought was, if client disconnects unexpectedly, cannot unsubscribe ..
therefore, unsubscribing pointless unless still connected , no longer want receive messages ..
is correct assumption?
if have connected clean session
flag set 1 when disconnect broker remove of subscriptions , other information.
if clean session
set 0 when connected, subscriptions saved @ broker until unsubscribe (or reconnect clean session
set 1 @ later point)
Comments
Post a Comment