DisconnectCause 
    Sealed class represents possible cause of disconnection.
Inheritors
Types
Link copied to clipboard
                  Happens when disconnection has been done intentionally. E.g. we release connection when app went to background.
Link copied to clipboard
                  Happens when some non critical error occurs.
Link copied to clipboard
                  Happens when networks is not available anymore.
Link copied to clipboard
                  Happens when a critical error occurs. Connection can't be restored after such disconnection.
Link copied to clipboard
                  Happens when Web Socket connection is not available.