waitUntilLive

open suspend override fun waitUntilLive()

Suspends the caller until all pending events are processed, and the client has finished processing all pending events.

Suitable for operations where the user is required to be online and without any pending events to be processed, for example write operations, like:

  • Creating a conversation

  • Sending a connection request

  • Editing conversation settings, etc.