Commit Graph

1463 Commits

Author SHA1 Message Date
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
Damien Arrachequesne
8cde767f94 [test] Update travis configuration (#594) 2018-02-28 01:02:49 +01:00
Damien Arrachequesne
0071fdfff9 [chore] Release 3.1.5 2018-02-18 11:41:40 +01:00
Damien Arrachequesne
64ce48046f fix: use try/catch when setting xhr.responseType (#592)
Some XHR implementations (like Firefox WebWorker, react-native and some Android 4.x versions) throw
an exception when setting xhr.responseType = 'arraybuffer' when xhr.readyState === 2 (which is
perfectly valid, spec-wise).

That commit fixes that behaviour by reverting some of the changes from
https://github.com/socketio/engine.io-client/pull/562 for those implementations.

Fixes #589
Closes #590
2018-02-18 11:35:00 +01:00
Damien Arrachequesne
3039017a58 [chore] Bump debug to version 3.1.0 2018-02-18 10:49:15 +01:00
Damien Arrachequesne
90f4d17b29 [chore] Release 3.1.4 2017-11-12 22:17:34 +01:00
Matt Grande
7fab005e28 [chore] Bump ws to version 3.3.1 (#587)
Related: https://nodesecurity.io/advisories/550
2017-11-12 22:10:48 +01:00
Damien Arrachequesne
4558b25922 [chore] Release 3.1.3 2017-10-11 07:58:19 +02:00
Damien Arrachequesne
a28776e8c8 [refactor] Update entry point in webpack configuration (#586)
Following #583.
2017-10-11 07:34:51 +02:00
Damien Arrachequesne
42501c658e [revert] [refactor] Remove usuless indexof dependency (#582)
This reverts commit 6043c49e91.
2017-10-11 07:33:55 +02:00
Damien Arrachequesne
8ce2432eda [chore] Bump xmlhttprequest-ssl to version 1.5.4 (#585) 2017-10-08 10:19:40 +02:00
Damien Arrachequesne
4a551a12ed [chore] Bump debug to version 2.6.9 (#584)
Related: https://nodesecurity.io/advisories/debug_regular-expression-denial-of-service
2017-10-08 10:19:21 +02:00
Damien Arrachequesne
d8fdf9b579 [refactor] Remove useless entry point (#583) 2017-10-08 10:00:35 +02:00
Damien Arrachequesne
6043c49e91 [refactor] Remove usuless indexof dependency (#582) 2017-10-08 10:00:09 +02:00
Damien Arrachequesne
5d29c1c0fd [test] Remove IE6 and IE7 tests (#581)
Related: https://wiki.saucelabs.com/pages/viewpage.action?pageId=70068108
2017-10-08 09:23:08 +02:00