Skip to content

Commit 5a5313e

Browse files
chore: release 3.4.3
Diff: 3.4.2...3.4.3
1 parent e5bc106 commit 5a5313e

File tree

4 files changed

+27
-14
lines changed

4 files changed

+27
-14
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## [3.4.3](https://github.com/socketio/engine.io-client/compare/3.4.2...3.4.3) (2020-06-04)
2+
3+
4+
### Bug Fixes
5+
6+
* **react-native:** restrict the list of options for the WebSocket object ([e5bc106](https://github.com/socketio/engine.io-client/commit/e5bc1063cc90a7b6262146c7b5338ffff1ff9e5b))
7+
8+
9+
110
## [3.4.2](https://github.com/socketio/engine.io-client/compare/3.4.1...3.4.2) (2020-05-13)
211

312

engine.io.js

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4453,19 +4453,23 @@ return /******/ (function(modules) { // webpackBootstrap
44534453

44544454
var uri = this.uri();
44554455
var protocols = this.protocols;
4456-
var opts = {
4457-
agent: this.agent,
4458-
perMessageDeflate: this.perMessageDeflate
4459-
};
44604456

4461-
// SSL options for Node.js client
4462-
opts.pfx = this.pfx;
4463-
opts.key = this.key;
4464-
opts.passphrase = this.passphrase;
4465-
opts.cert = this.cert;
4466-
opts.ca = this.ca;
4467-
opts.ciphers = this.ciphers;
4468-
opts.rejectUnauthorized = this.rejectUnauthorized;
4457+
var opts = {};
4458+
4459+
if (!this.isReactNative) {
4460+
opts.agent = this.agent;
4461+
opts.perMessageDeflate = this.perMessageDeflate;
4462+
4463+
// SSL options for Node.js client
4464+
opts.pfx = this.pfx;
4465+
opts.key = this.key;
4466+
opts.passphrase = this.passphrase;
4467+
opts.cert = this.cert;
4468+
opts.ca = this.ca;
4469+
opts.ciphers = this.ciphers;
4470+
opts.rejectUnauthorized = this.rejectUnauthorized;
4471+
}
4472+
44694473
if (this.extraHeaders) {
44704474
opts.headers = this.extraHeaders;
44714475
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "engine.io-client",
33
"description": "Client for the realtime Engine",
44
"license": "MIT",
5-
"version": "3.4.2",
5+
"version": "3.4.3",
66
"main": "lib/index.js",
77
"homepage": "https://github.com/socketio/engine.io-client",
88
"contributors": [

0 commit comments

Comments
 (0)