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

websocket

Package Overview
Dependencies
Maintainers
0
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

websocket - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

1

lib/WebSocketRequest.js

@@ -63,2 +63,3 @@ var crypto = require('crypto');

this.serverConfig = serverConfig;
this.readHandshake(httpRequest);
};

@@ -65,0 +66,0 @@

7

lib/WebSocketServer.js

@@ -102,7 +102,4 @@ var extend = require('./utils').extend;

WebSocketServer.prototype.handleUpgrade = function(request, socket, head) {
var wsRequest = new WebSocketRequest(socket, request, this.config);
wsRequest.once('requestAccepted', this._handlers.requestAccepted);
try {
wsRequest.readHandshake(request);
var wsRequest = new WebSocketRequest(socket, request, this.config);
}

@@ -113,2 +110,4 @@ catch(e) {

}
wsRequest.once('requestAccepted', this._handlers.requestAccepted);

@@ -115,0 +114,0 @@ if (!this.config.autoAcceptConnections && this.listeners('request').length > 0) {

@@ -6,3 +6,3 @@ {

"author": "Brian McKelvey <brian@worlize.com>",
"version": "0.0.5",
"version": "0.0.6",
"repository": {

@@ -9,0 +9,0 @@ "type": "git",

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