bare-ws 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/socket.js +4 -4
- package/package.json +1 -1
package/lib/socket.js
CHANGED
|
@@ -222,10 +222,10 @@ const handshake = exports.handshake = function handshake (req, cb) {
|
|
|
222
222
|
function defaultPort (url) {
|
|
223
223
|
switch (url.protocol) {
|
|
224
224
|
case 'ftp:': return 21
|
|
225
|
-
case 'http':
|
|
226
|
-
case 'ws': return 80
|
|
227
|
-
case 'https':
|
|
228
|
-
case 'wss': return 443
|
|
225
|
+
case 'http:':
|
|
226
|
+
case 'ws:': return 80
|
|
227
|
+
case 'https:':
|
|
228
|
+
case 'wss:': return 443
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
return null
|