RealTimeMessagingClient

Interface for managing real-time messaging.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Flow of real-time client message actions.

Link copied to clipboard

Flow of real-time client messages.

Functions

Link copied to clipboard
abstract fun destroy()

Destroy the real-time messaging client.

Link copied to clipboard
abstract suspend fun removeMessageAction(channel: String, messageTimeToken: Long, pubnubActionToken: Long)

Remove a message action.

Link copied to clipboard
abstract fun start()

Start the real-time messaging client.

Link copied to clipboard
abstract fun stop()

Stop the real-time messaging client.

Link copied to clipboard
abstract fun subscribe(channels: List<String>)

Subscribe to a list of channels.

Link copied to clipboard
fun RealTimeMessagingClient.syncTo(timeSource: () -> CoreEpochTime, validEventBufferMs: Long = Long.MAX_VALUE, dispatcher: CoroutineDispatcher, sessionScope: CoroutineScope): RealTimeMessagingClient
Link copied to clipboard
abstract fun unsubscribe(channels: List<String>)

Unsubscribe from a list of channels.

Link copied to clipboard
abstract fun unsubscribeAll()

Unsubscribe from all channels.