Comparing version 7.0.0 to 7.0.1
@@ -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(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
101173
2833
426