An EventEmitter useful for collecting hapi server ops information.
const Hapi = require('@hapi/hapi');
const Oppsy = require('@hapi/oppsy');
const server = new Hapi.Server();
const oppsy = new Oppsy(server);
oppsy.on('ops', (data) => {
console.log(data);
});
await server.start();
oppsy.start(1000);
This creates a new Oppsy object and starts collecting information every 1000 miliseconds