-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore support for default port numbers
- Loading branch information
Tom Atkinson
committed
Feb 6, 2017
1 parent
66917d0
commit f043b52
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f043b52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Nibbler999 why is this necessary? It will default to 443 or 80 if not specified.
f043b52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It defaults to null and throws a TypeError
const ws = new WebSocket('wss://echo.websocket.org/', { rejectUnauthorized: true });
TypeError: "port" option should be a number or string: null
f043b52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotcha. That's weird though as
should work.