Skip to main content

Enumeration: DisconnectReason

Charting Library.DisconnectReason

Enumeration Members​

SessionRestoreFailed​

SessionRestoreFailed = 0

[[DisconnectType.FailedRestoring]] alone cannot be trusted for this: integrations also use it for a failed token renewal, exhausted reconnect attempts, a failed manual sign-in, and a restore that found nothing saved.


ConnectionLost​

ConnectionLost = 1

REST brokers report this as [[DisconnectType.FailedRestoring]], the reaction the interface needs, not a failed restore.


TokenExpired​

TokenExpired = 2

REST brokers report this as [[DisconnectType.LogOut]] because that is the reaction the interface needs; nobody logged out.


Inactivity​

Inactivity = 3


UserLogOut​

UserLogOut = 4

Set unconditionally by the code path that carries out the user's request, regardless of what [[DisconnectType]] it reports; nothing else sets it, so its presence is the only signal analytics can trust for a deliberate disconnection.