public async Task ChannelHistory() { var realtime = new AblyRealtime(PlaceholderKey); IRealtimeChannel channel = realtime.Channels.Get("test"); var history = await channel.HistoryAsync(); // Loop through current history page foreach (var message in history.Items) { // Do something with message } var nextPage = await history.NextAsync(); var presenceHistory = await channel.Presence.HistoryAsync(); // Loop through the presence messages foreach (var presence in presenceHistory.Items) { // Do something with the messages } var presenceNextPage = await presenceHistory.NextAsync(); }