DisconnectReason

enum DisconnectReason : Enum<DisconnectReason>

Reason why room transitions to disconnected state.

Entries

Link copied to clipboard

Orderly disconnect has been initiated by client. Used when user calls ChatRoom.disconnect method.

Link copied to clipboard

Orderly disconnect has been initiated by server. Used when given user is disconnected for moderation purposes, e.g. when other user sends disconnect user request method on given user.

Link copied to clipboard

Room has not been able to establish web socket connection with IVS. Room will retry attempts as specified by ChatRoom.maxReconnectAttempts parameter. ChatRoomListener.onDisconnected with this reason is only called when all reconnection attempts have failed.

Link copied to clipboard

Room has not been able to fetch chat token from user backend. Room will retry attempts as specified by ChatRoom.maxReconnectAttempts parameter. ChatRoomListener.onDisconnected with this reason is only called when all token fetching attempts have failed.

Properties

Link copied to clipboard
val name: String
Link copied to clipboard
val ordinal: Int