We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bd444a commit d134feeCopy full SHA for d134fee
lib/transports/websocket.js
@@ -67,7 +67,12 @@ class WS extends Transport {
67
"ca",
68
"ciphers",
69
"rejectUnauthorized",
70
- "localAddress"
+ "localAddress",
71
+ "protocolVersion",
72
+ "origin",
73
+ "maxPayload",
74
+ "family",
75
+ "checkServerIdentity"
76
);
77
78
if (this.opts.extraHeaders) {
lib/util.js
@@ -1,6 +1,8 @@
1
module.exports.pick = (obj, ...attr) => {
2
return attr.reduce((acc, k) => {
3
- acc[k] = obj[k];
+ if (obj.hasOwnProperty(k)) {
4
+ acc[k] = obj[k];
5
+ }
6
return acc;
7
}, {});
8
};
0 commit comments