loadChannelMessages method

  1. @override
Future<List<Broadcast>> loadChannelMessages(
  1. String channel
)

Loads all locally cached Broadcast messages for a specific channel.

The returned list must be sorted in ascending order by its sequence_id so the local state engine can accurately replay the events to reconstruct the current state.

Implementation

@override
Future<List<Broadcast>> loadChannelMessages(String channel) {
  return messageRepository.loadChannelMessages(channel);
}