function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Marc D BehrMarc D Behr 

Looking for a way to show platform event data

I have a Platform Event that is published when an error occurs in some event. I have a Lightning component that is subscribed to the event, but it only shows the last event. What I want, is to be able to show (as long as the window is open), the last X (say 100) events that have been received and have it continue to update as new events come in (old ones fall off the bottom and new ones appear on the top). 

The component that I am using looks like this
<aura:component implements="flexipage:availableForAllPageTypes">
    <aura:attribute name="lastMessagePayload" type="String" access="private"/>
    <c:streaming channel="/event/DebugEvent__e" onMessage="{!c.handleMessage}"/>

Does anybody know how can I make the lastMessagePayload do what I described above?