
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
An EventEmitter useful for collecting hapi server ops information.
Lead Maintainer: Adam Bretz
const Oppsy = require('oppsy');
const Hapi = require('hapi');
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
Creates a new Oppsy object.
server
- the hapi server to collect information about.[config]
- optional configuration object
httpAgents
- the list of httpAgents to report socket information about. Can be a single http.Agent or an array of agents objects. Defaults to Http.globalAgent.httpsAgents
- the list of httpsAgents to report socket information about. Can be a single https.Agent or an array of agents. Defaults to Https.globalAgent.The oppsy object is an EventEmitter so it exposes the same API(.on
and .emit
) as the Node EventEmitter object. After it is started, it emits an "ops" event after a set interval with the collected ops information as the event payload.
Starts an Oppsy object collecting network and server information.
interval
- number of milliseconds to wait between each data sampling.Stops an Oppsy objects collecting.
FAQs
An EventEmitter useful for collecting hapi server ops information
The npm package oppsy receives a total of 0 weekly downloads. As such, oppsy popularity was classified as not popular.
We found that oppsy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.