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 7.0.0 to 7.0.1

4

lib/websocket-server.js

@@ -28,3 +28,3 @@ 'use strict';

* clients
* @param {Function} options.handleProtocols An hook to handle protocols
* @param {Function} options.handleProtocols A hook to handle protocols
* @param {String} options.host The hostname where to bind the server

@@ -38,3 +38,3 @@ * @param {Number} options.maxPayload The maximum allowed message size

* @param {http.Server} options.server A pre-created HTTP/S server to use
* @param {Function} options.verifyClient An hook to reject connections
* @param {Function} options.verifyClient A hook to reject connections
* @param {Function} callback A listener for the `listening` event

@@ -41,0 +41,0 @@ */

@@ -671,3 +671,7 @@ 'use strict';

options.path = undefined;
options.servername = options.servername || options.host;
if (!options.servername && options.servername !== '') {
options.servername = options.host;
}
return tls.connect(options);

@@ -674,0 +678,0 @@ }

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

@@ -26,4 +26,4 @@ "keywords": [

"scripts": {
"test": "npm run lint && nyc --reporter=html --reporter=text mocha test/*.test.js",
"integration": "npm run lint && mocha test/*.integration.js",
"test": "npm run lint && nyc --reporter=html --reporter=text mocha --throw-deprecation test/*.test.js",
"integration": "npm run lint && mocha --throw-deprecation test/*.integration.js",
"lint": "eslint --ignore-path .gitignore . && prettier --check --ignore-path .gitignore \"**/*.{json,md,yaml,yml}\""

@@ -39,3 +39,3 @@ },

"eslint": "^5.16.0",
"eslint-config-prettier": "^4.1.0",
"eslint-config-prettier": "^5.0.0",
"eslint-plugin-prettier": "^3.0.1",

@@ -42,0 +42,0 @@ "mocha": "^6.1.3",

@@ -217,2 +217,3 @@ # ws: a Node.js WebSocket library

const WebSocket = require('ws');
const url = require('url');

@@ -219,0 +220,0 @@ const server = http.createServer();

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