ChatManager

Manager class for global management of the chat service. Implements Request Coalescing to avoid duplicate network calls.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val state: Observable<XmppClient.State>

Functions

Link copied to clipboard
fun connect(isDebugEnabled: Boolean = false): Completable

Initiates connection to chat service.

Link copied to clipboard
fun disconnect(): Completable

Disconnects completely.

Link copied to clipboard
fun getChat(xmppJid: XmppJid, forceUpdate: Boolean): Maybe<Chat>
Link copied to clipboard
fun getChats(forceRefresh: Boolean = false): Single<List<Chat>>
Link copied to clipboard
fun restore(isDebugEnabled: Boolean = false): Completable

Restores connection.

Link copied to clipboard
fun suspend(): Completable

Suspends connection.