LiveLikeMessagingClient

class LiveLikeMessagingClient(liveLikeMessagingClientParam: LiveLikeMessagingClientParam, networkApiClient: NetworkApiClient, chatRoomId: StateFlow<String?>, scope: CoroutineScope) : RealTimeMessagingClient

Constructors

Link copied to clipboard
constructor(liveLikeMessagingClientParam: LiveLikeMessagingClientParam, networkApiClient: NetworkApiClient, chatRoomId: StateFlow<String?>, scope: CoroutineScope)

Properties

Link copied to clipboard
open override val messageActionFlow: Flow<RealTimeClientMessage>

Flow of real-time client message actions.

Link copied to clipboard
open override val messageClientFlow: Flow<RealTimeClientMessage>

Flow of real-time client messages.

Functions

Link copied to clipboard
open override fun destroy()

Destroy the real-time messaging client.

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

Remove a message action.

Link copied to clipboard
open override fun start()

Start the real-time messaging client.

Link copied to clipboard
open override fun stop()

Stop the real-time messaging client.

Link copied to clipboard
open override 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
open override fun unsubscribe(channels: List<String>)

Unsubscribe from a list of channels.

Link copied to clipboard
open override fun unsubscribeAll()

Unsubscribe from all channels.