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 ccb99e3 commit 177b95fCopy full SHA for 177b95f
lib/transports/websocket.js
@@ -58,24 +58,8 @@ class WS extends Transport {
58
const uri = this.uri();
59
const protocols = this.opts.protocols;
60
61
- let opts;
62
- if (isReactNative) {
63
- opts = pick(this.opts, "localAddress");
64
- } else {
65
- opts = pick(
66
- this.opts,
67
- "agent",
68
- "perMessageDeflate",
69
- "pfx",
70
- "key",
71
- "passphrase",
72
- "cert",
73
- "ca",
74
- "ciphers",
75
- "rejectUnauthorized",
76
- "localAddress"
77
- );
78
- }
+ // React Native only supports the 'headers' option, and will print a warning if anything else is passed
+ const opts = isReactNative ? {} : this.opts;
79
80
if (this.opts.extraHeaders) {
81
opts.headers = this.opts.extraHeaders;
0 commit comments