in src/lib/api/event.replayer.ts [74:89]
replayForApp(appData: PrebootAppData) {
appData = <PrebootAppData>(appData || {});
// try catch around events b/c even if error occurs, we still move forward
try {
const events = appData.events || [];
// replay all the events from the server view onto the client view
events.forEach(event => this.replayEvent(appData, event));
} catch (ex) {
console.error(ex);
}
// if we are buffering, switch the buffers
this.switchBuffer(appData);
}