Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

loadmill-monitor

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loadmill-monitor - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

10

lib/monitor.js

@@ -47,2 +47,4 @@ const WebSocket = require('ws');

this.ws.on('unexpected-response', this._handleUnexpectedResponse.bind(this));
this._bindHandler('open', this._onOpen);

@@ -54,2 +56,9 @@ this._bindHandler('error', this._onError);

_handleUnexpectedResponse(req, res) {
this._onClose({
code: res.statusCode === 401 ? 3000 : 1000,
reason: "Server response was " + res.statusCode + " " + res.statusMessage
});
}
_bindHandler(event, handler) {

@@ -80,2 +89,3 @@ this.ws['on' + event] = handler.bind(this);

setTimeout(this.listen.bind(this), reopenDelay)
.unref();
}

@@ -82,0 +92,0 @@ }

2

package.json
{
"name": "loadmill-monitor",
"version": "1.0.0",
"version": "1.0.1",
"description": "Performance monitoring for Node.js",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc