Handles the pushr events for Real User Metrics
Methods
(static) batchPostRumData()
When the rum data is sent, empty the rumObjects array to ensure the data is not sent again. Use
navigator.sendBeacon()
if available, falling back to fetch()
.
(static) leavePageDispatcher()
Dispatch any logs in rumObjects when the page is backgrounded or unloaded
(static) pushrDispatcher()
If it is a rum event then push the rum data onto a new array for rum data. If the metric type isn't one that is allow then we exit. If we have already collected it then we exit.