Damien Arrachequesne
ab3de6ab53
test: add Node.js 14 in the test matrix
...
Reference: https://github.com/nodejs/Release
2020-09-09 01:36:13 +02:00
Damien Arrachequesne
8440a57f76
chore: bump engine.io-parser version
...
See also: https://github.com/socketio/engine.io-protocol#difference-between-v3-and-v4
Release: https://github.com/socketio/engine.io-parser/releases/tag/4.0.0
Diff: https://github.com/socketio/engine.io-parser/compare/2.2.0...4.0.0
2020-09-09 00:02:24 +02:00
Gal Koren
cabb78d666
chore: bump parseqs version ( #639 )
...
Release notes: https://github.com/galkn/querystring/releases/tag/v0.0.6
2020-09-08 01:54:50 +02:00
Damien Arrachequesne
a5e76bc011
docs: add example with extraHeaders in the browser
2020-06-04 10:20:42 +02:00
Damien Arrachequesne
dac76f249b
docs: use ES6 syntax for the code examples
2020-06-04 10:09:22 +02:00
Damien Arrachequesne
d5d81a7c75
chore: bump component-emitter dependency
...
Subscribing/unsubscribing for a lot of different event types could lead
to a memory leak.
See aa2e57acc7
Diff: https://github.com/component/emitter/compare/1.2.1...1.3.0
2020-06-04 08:12:10 +02:00
Damien Arrachequesne
f3a48329e7
test: restore tests on all browsers
...
iphone / ipad / edge were excluded in [1], though there is no clear
explanation.
[1] 28765c5430
2020-06-04 07:43:47 +02:00
Damien Arrachequesne
2f5c948abe
fix(react-native): restrict the list of options for the WebSocket object
...
Only 'headers' and 'localAddress' options are supported by the
WebSocket implementation in React Native.
The following message was printed to the console:
> Unrecognized WebSocket connection option(s) `agent`, `perMessageDeflate`, `pfx`, `key`, `passphrase`, `cert`, `ca`, `ciphers`, `rejectUnauthorized`. Did you mean to put these under `headers`?
Reference: https://reactnative.dev/docs/network.html#websocket-support
2020-05-25 07:34:17 +02:00
Damien Arrachequesne
86d4e8d4da
docs(changelog): include changelog for release 3.4.1
...
Merged from the 3.4.x branch.
2020-04-17 15:08:17 +02:00
Damien Arrachequesne
3f3a6f9914
fix: use globalThis polyfill instead of self/global ( #634 )
...
In order to fix the "self is not defined" issues in Android 8 and React
Native.
Fixes https://github.com/socketio/engine.io-client/issues/611 , https://github.com/socketio/engine.io-client/issues/626
Closes https://github.com/socketio/engine.io-client/pull/627
2020-04-16 16:08:37 +02:00
Chris West (Faux)
27fa6949f3
refactor: remove indexof dependency
...
This is a polyfill for indexOf(), which we use literally everywhere else.
2020-04-16 10:06:44 +02:00
Damien Arrachequesne
804e871d4a
chore(release): 4.0.0-alpha.1
2020-02-12 08:26:52 +01:00
Damien Arrachequesne
7c7f1a9fe2
fix: properly assign options when creating the transport
...
The query attribute was overwritten, due to the order of arguments in
the assignment. The bug was introduced in the refactor (5f47a50 ).
2020-02-12 08:14:51 +01:00
Damien Arrachequesne
d37534e052
chore(release): 4.0.0-alpha.0
2020-02-12 07:45:56 +01:00
Damien Arrachequesne
5f47a50ee5
refactor: refactor the handling of the options
2020-02-11 23:33:34 +01:00
Damien Arrachequesne
41a1bcf1f5
chore: bump ws dependency
...
Diff: https://github.com/websockets/ws/compare/6.1.0...7.2.1
2020-02-11 23:17:43 +01:00
Damien Arrachequesne
4d311495af
test: add Node.js 12 and 13 in the test matrix
2020-02-11 08:05:58 +01:00
Damien Arrachequesne
81d7171c6b
feat: reverse the ping-pong mechanism
...
The ping packets will now be sent by the server, because the timers set
in the browsers are not reliable enough. We suspect that a lot of
timeout problems came from timers being delayed on the client-side.
Breaking change: v3.x clients will not be able to connect anymore (they
will send a ping packet and timeout while waiting for a pong packet).
Related: https://github.com/socketio/engine.io/issues/312
2020-02-04 12:29:37 +01:00
Damien Arrachequesne
581cefff2d
refactor: remove gulp from the build
...
Plain npm scripts should be sufficient for our use case.
2020-01-15 08:46:15 +01:00
Damien Arrachequesne
eb88094a0e
chore: point towards the v4 branch
2020-01-14 23:02:25 +01:00
Damien Arrachequesne
08aff9487f
refactor: use prettier to format code
2020-01-14 22:58:35 +01:00
Damien Arrachequesne
0fcc5417ac
refactor: migrate to ES6 syntax
2020-01-10 07:29:26 +01:00
Damien Arrachequesne
11dc4f3a56
chore: migrate to webpack 4
...
Breaking change: the output bundle will now be found in the dist/ folder.
2020-01-10 07:27:02 +01:00
Damien Arrachequesne
ccc9337497
[chore] Release 3.4.0
...
Diff: https://github.com/socketio/engine.io-client/compare/3.3.2...3.4.0
2019-09-13 13:57:12 +02:00
Damien Arrachequesne
1e29b0c984
[chore] Bump engine.io-parser to version 2.2.0
...
Diff: https://github.com/socketio/engine.io-parser/compare/2.1.3...2.2.0
2019-09-13 13:48:19 +02:00
Damien Arrachequesne
e8cd8c0d6c
build: transpile the debug dependency with Babel
...
a967626a1d has broken
the build for IE and android 5.1
Related: https://github.com/visionmedia/debug/issues/668
2019-09-13 13:36:33 +02:00
Christopher
fd7fff252d
[fix] Ensure valid status is passed to error handler ( #622 )
...
Closes https://github.com/socketio/engine.io-client/issues/621
2019-09-13 11:59:51 +02:00
Nubami SQReder
226626921d
[feat] Support extra charset info in Content-Type header ( #619 )
...
XHR Polling failed to make handshake with server that adds charset info into Content-Type header.
Closes https://github.com/socketio/engine.io-client/issues/618
2019-09-13 11:58:24 +02:00
Jake Barnes
2847411dd0
[feat] Add withCredentials option ( #614 )
...
withCredentials was always set to true, despite the browser default being false, and can now be overridden.
Closes https://github.com/socketio/engine.io-client/issues/495
2019-09-13 11:56:36 +02:00
Szymon Lesisz
0eeaa7a927
[fix] fix NodeWebSocket declaration ( #613 )
...
NodeWebSocket was be required ONLY if global variables self and WebSocket were not defined.
Closes https://github.com/socketio/engine.io-client/issues/609
2019-09-13 11:53:59 +02:00
Dimitar Nestorov
242ea9edea
[chore] Bump debug to version 4.1.0 ( #612 )
2019-09-13 11:52:16 +02:00
Damien Arrachequesne
bc8c4978ca
[ci] use Node.js 10 for compatibility with Gulp v3
...
It seems Node.js 12 (which is now 'latest') does not work with Gulp v3. In the future, we will
either have to migrate to Gulp v4, or remove Gulp from the build system.
See https://github.com/gulpjs/gulp/issues/2324
2019-09-13 11:34:45 +02:00
Damien Arrachequesne
57f9d457d5
[chore] Release 3.3.2
2019-01-20 22:59:42 +01:00
Damien Arrachequesne
e157aacbe7
[test] IE8 is no longer supported by Saucelabs
...
Ref: https://wiki.saucelabs.com/display/DOCS/2018/10/16/Announcing+End+of+Life+for+Internet+Explorer+8+on+Windows+7
2019-01-20 22:58:39 +01:00
Ben James
1ec53d424d
[fix] Fix Websocket implementation in React Native ( #607 )
...
As `self` is undefined in React Native.
2019-01-20 22:34:30 +01:00
Damien Arrachequesne
696c7e7efc
[chore] Release 3.3.1
2018-11-19 22:27:51 +01:00
Damien Arrachequesne
66b9e4a186
[fix] fix JSONP transport in Node.js environment
...
The commit 99bcc62 resulted in `window is not defined` errors.
2018-11-19 22:12:20 +01:00
Nubami SQReder
f62fca4b05
[fix] Trigger xhr polling transport unload handler on 'pagehide' or 'unload' instead of 'beforeunload' ( #604 )
...
...to prevent broke connection on cancelled beforeunload event
Fixes #603
2018-11-19 13:11:45 +01:00
Damien Arrachequesne
484e3eced9
[chore] Release 3.3.0
2018-11-08 00:20:58 +01:00
Damien Arrachequesne
bb3a21db1f
[chore] Bump ws to version 6.1.0 ( #602 )
2018-11-07 23:17:19 +01:00
Damien Arrachequesne
99bcc622cb
[fix] Remove any reference to the global variable
...
Related: https://github.com/socketio/socket.io-client/issues/1166
2018-11-07 22:40:39 +01:00
Damien Arrachequesne
122111a98f
[chore] Update the Makefile
2018-11-07 22:38:03 +01:00
Craig Thayer
26e9329050
[feat] Detect React-Native environment and use all websocket features ( #591 )
...
React-Native provides a Websocket object that is more functionally aligned with the Node.js websocket than the browser websocket.
It has the same constructor signature as the Node.js websocket and can support extraHeaders and protocols.
This PR will detect when the engine.io-client is running in React-Native, call the proper Websocket constructor, and enable support for extraHeaders.
2018-11-02 08:09:02 +01:00
Damien Arrachequesne
28765c5430
[test] Update zuul configuration
...
Excluding tests on iphone / ipad / edge for the moment.
2018-11-02 08:09:02 +01:00
Damien Arrachequesne
669c076f55
[test] Update travis configuration
2018-11-02 08:09:02 +01:00
Damien Arrachequesne
c4e723ccba
[chore] Pin zuul version
...
The CI seems to fail with the new version:
/home/travis/build/[secure]io/engine.io-client/node_modules/zuul/bin/zuul:332
throw err.message;
^
internet explorer@8: [eval("(window.zuul_msg_bus ? window.zuul_msg_bus.splice(0, 1000) : []);")] Not JSON response
2018-11-02 08:09:02 +01:00
naoki-san
f5a1ec8651
[docs] Improve description accuracy of pfx option ( #597 )
...
Reference: https://nodejs.org/docs/latest-v6.x/api/tls.html#tls_tls_createsecurecontext_options
2018-11-01 08:11:06 +01:00
Damien Arrachequesne
33e0ba439d
[chore] Release 3.2.1
2018-03-09 13:04:00 +01:00
Thomas Hunkapiller
4349b648d4
[fix] Fix UTF-8 encoding in Firefox WebWorker ( #596 )
2018-03-09 13:01:02 +01:00
Damien Arrachequesne
bed6da66a1
[chore] Release 3.2.0
2018-02-28 01:31:00 +01:00