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 8228a43 commit 4873a23Copy full SHA for 4873a23
lib/transports/websocket.js
@@ -54,7 +54,21 @@ class WS extends Transport {
54
const protocols = this.opts.protocols;
55
56
// React Native only supports the 'headers' option, and will print a warning if anything else is passed
57
- const opts = isReactNative ? {} : this.opts;
+ const opts = isReactNative
58
+ ? {}
59
+ : pick(
60
+ this.opts,
61
+ "agent",
62
+ "perMessageDeflate",
63
+ "pfx",
64
+ "key",
65
+ "passphrase",
66
+ "cert",
67
+ "ca",
68
+ "ciphers",
69
+ "rejectUnauthorized",
70
+ "localAddress"
71
+ );
72
73
if (this.opts.extraHeaders) {
74
opts.headers = this.opts.extraHeaders;
0 commit comments