onOldMessagesReceived

abstract fun onOldMessagesReceived(messages: List<PubSubMessage>)

Called when previously published messages are received upon subscribing to a topic.

This is invoked immediately after subscribing if there are persisted messages on the topic (i.e., messages published with persist: true).

Parameters

messages

a List of PubSubMessage objects representing the historical messages