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

ws

Package Overview
Dependencies
Maintainers
4
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ws - npm Package Compare versions

Comparing version 6.1.3 to 6.1.4

4

lib/websocket.js

@@ -482,2 +482,3 @@ 'use strict';

parsedUrl.protocol === 'wss:' || parsedUrl.protocol === 'https:';
const defaultPort = isSecure ? 443 : 80;
const key = crypto.randomBytes(16).toString('base64');

@@ -491,3 +492,4 @@ const httpObj = isSecure ? https : http;

options.createConnection = isSecure ? tlsConnect : netConnect;
options.port = parsedUrl.port || (isSecure ? 443 : 80);
options.defaultPort = options.defaultPort || defaultPort;
options.port = parsedUrl.port || defaultPort;
options.host = parsedUrl.hostname.startsWith('[')

@@ -494,0 +496,0 @@ ? parsedUrl.hostname.slice(1, -1)

{
"name": "ws",
"version": "6.1.3",
"version": "6.1.4",
"description": "Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js",

@@ -36,7 +36,7 @@ "keywords": [

"bufferutil": "~4.0.0",
"eslint": "~5.12.0",
"eslint-config-prettier": "~3.6.0",
"eslint": "~5.14.0",
"eslint-config-prettier": "~4.0.0",
"eslint-plugin-prettier": "~3.0.0",
"mocha": "~5.2.0",
"nyc": "~13.1.0",
"nyc": "~13.3.0",
"prettier": "~1.16.1",

@@ -43,0 +43,0 @@ "prettylint": "~1.0.0",

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