UNPKG

captain-morgan

Version:

Real User Monitoring (RUM) data collector

17 lines (11 loc) 368 B
Captain Morgan ============== Real User Monitoring (RUM) data collector Usage ----- ```javascript import { monitor } from 'captain-morgan'; const reporter = (report) => console.log('captains log', report); monitor(reporter); ``` A `reporter` is called with `report` events. These can then be transported as desired (collated into `POST`s, websocket writes, etc).