Commit Graph

1573 Commits

Author SHA1 Message Date
Damien Arrachequesne
7f73a289f5 test: fix tests in IE 2020-09-30 17:42:32 +02:00
Damien Arrachequesne
67c54b8344 chore: bump engine.io-parser and socket.io-parser
Diff:

- https://github.com/socketio/engine.io-parser/compare/2.2.0...2.2.1
- https://github.com/socketio/socket.io-parser/compare/3.3.0...3.3.1

Related:

- https://github.com/socketio/socket.io-client/pull/1376
- https://github.com/socketio/socket.io-client/issues/1234
2020-09-30 16:14:19 +02:00
Damien Arrachequesne
15a52ab721 test: remove arrow function (for now)
It was included by the previous commit, but the test code is not
currently transpiled to ES5 so it breaks IE in the CI.

Let's use a plain function for now.
2020-09-30 16:11:54 +02:00
Luke Olney
050108b228 fix: fix reconnection after opening socket asynchronously (#1253)
Closes https://github.com/socketio/socket.io/issues/3358
2020-09-30 16:01:15 +02:00
Damien Arrachequesne
b570025a79 chore: bump engine.io-client and downgrade debug
The newer versions need to be transpiled to ES5, so we'll rollback for
now as it breaks IE11.

We'll have to find a way to provide the users who bundle the Engine.IO
(or Socket.IO) client (with webpack for example) with a source code
which does not include debug (or document the usage of
webpack-remove-debug [1]).

[1] https://github.com/johngodley/webpack-remove-debug
2020-09-30 02:26:29 +02:00
Damien Arrachequesne
1fb1b78020 chore: remove unused dependencies
- base64-arraybuffer => dev
- has-cors => dev
- object-component => removed
2020-09-30 02:24:16 +02:00
devmi
0c39f145fa docs: add section about Debug / logging on the client side (#1278) 2020-09-30 02:09:10 +02:00
Mithilesh Pradhan
6ce02ee3b0 docs: add server port in the example (#1359) 2020-09-30 01:52:26 +02:00
Damien Arrachequesne
f4a4d89f15 chore: update package-lock.json file
Following previous commit, the lock file was not up-to-date.
2020-09-30 00:20:59 +02:00
rookieKing
3c1d860420 chore: bump component-emitter dependency (#1376)
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-09-30 00:13:12 +02:00
Damien Arrachequesne
b7dbbd28c8 test: fix race condition in the tests
Even with a timeout of 0, the 'open' event was emitted before the
timeout was reached, so the tests would randomly fail in the CI.
2020-09-30 00:07:29 +02:00
Damien Arrachequesne
661f1e7fac [chore] Release 2.3.0
Diff: https://github.com/socketio/socket.io-client/compare/2.2.0...2.3.0
2019-09-20 12:22:41 +02:00
Damien Arrachequesne
71d7b79965 [chore] Bump engine.io-client to version 3.4.0
Also includes the bump of the debug dependency.

Diff: https://github.com/socketio/engine.io-client/compare/3.3.1...3.4.0
2019-09-20 12:02:21 +02:00
Lukas Drgon
8b4a539e7a [docs] Add CDN link (#1318) 2019-09-20 12:01:51 +02:00
Damien Arrachequesne
40cf185574 [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.
2019-09-20 11:25:13 +02:00
Damien Arrachequesne
3020e455ab [chore] Release 2.2.0 2018-11-29 00:15:03 +01:00
Damien Arrachequesne
06e9a4ca26 [chore] Bump dependencies
- engine.io-client: https://github.com/socketio/engine.io-client/compare/3.2.0...3.3.1
- socket.io-parser: https://github.com/socketio/socket.io-parser/compare/3.2.0..3.3.0
2018-11-28 22:51:53 +01:00
Damien Arrachequesne
4a93871496 [chore] Update the Makefile 2018-11-28 22:48:39 +01:00
Damien Arrachequesne
eeafa44d01 [fix] Remove any reference to the global variable
Related: https://github.com/socketio/socket.io-client/issues/1166
2018-11-28 22:48:12 +01:00
Damien Arrachequesne
dfc34e482c [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-19 22:59:59 +01:00
Damien Arrachequesne
2258c034fa [chore] Update issue template 2018-08-21 13:22:38 +02:00
Damien Arrachequesne
8372591652 [chore] Release 2.1.1 2018-05-17 23:23:01 +02:00
Nicolas Ettlin
23000b7995 [docs] Add a link to the npm package in the README (#1195) 2018-05-17 22:54:49 +02:00
Damien Arrachequesne
0fe9439ff6 [fix] Fire an error event on middleware failure for non-root namespace (#1202)
In the following example:

```js
io.use((socket, next) => {
  next(new Error('Auth failed'));
});

// client-side
const socket = io('https://url/custom-namespace');

socket.on('error', (err) => {
  // ...
});
```

The 'error' event wasn't fired on the custom namespace.
2018-05-17 22:53:37 +02:00
Damien Arrachequesne
3eb047fcfd [chore] Release 2.1.0 2018-03-29 23:30:40 +02:00
Damien Arrachequesne
afb952d854 [docs] Add a note about reconnecting after a server-side disconnection 2018-03-29 23:15:47 +02:00
Damien Arrachequesne
74893d53ca [feat] Add a 'binary' flag (#1194)
So that the call to the `has-binary` method can be skipped. Usage:

```
// with binary data
socket.binary(true).emit("binary", obj);

// without binary data
socket.binary(false).emit("string", obj);

// call to hasBin
socket.emit("guess", obj);
```
2018-03-10 07:49:12 +01:00
Damien Arrachequesne
9701611427 [chore] Bump engine.io-client to version 3.2.0 (#1192) 2018-03-01 20:20:59 +01:00
Damien Arrachequesne
3d8f24e94f [test] Update travis configuration 2018-03-01 02:23:26 +01:00
Aaron Ogata
e27f38bb68 [chore] Restore unminified distribution files (#1191) 2018-03-01 01:08:11 +01:00
Julian Grinblat
bb743c42f6 [docs] Document connected and disconnected socket properties (#1155) 2018-03-01 00:29:26 +01:00
Damien Arrachequesne
f31837fdf2 [chore] Bump debug to version 3.1.0 2018-02-25 09:24:23 +01:00
Damien Arrachequesne
ebb0596ab0 [chore] Release 2.0.4 2017-10-22 15:17:13 +02:00
Damien Arrachequesne
57cee214fb [test] Remove IE6 and IE7 tests (#1164)
Related: https://wiki.saucelabs.com/pages/viewpage.action?pageId=70074721
2017-10-22 15:08:16 +02:00
Damien Arrachequesne
c58ecfc4a7 [docs] Add code examples for registered events (#1139) 2017-06-23 08:33:04 +02:00
Damien Arrachequesne
e9ebe36db7 [docs] Add an example with ES6 import in the README (#1138) 2017-06-23 08:17:17 +02:00
Damien Arrachequesne
19f2b19900 [chore] Release 2.0.3 2017-06-12 14:06:59 +02:00
Eli Flanagan
83fedf598a [docs] Add explicit documentation for websocket transport (#1128) 2017-06-08 12:24:56 +02:00
Damien Arrachequesne
c0da119e55 [docs] Update documentation (#1124) 2017-06-03 07:59:37 +02:00
Damien Arrachequesne
c3c027086c [chore] Release 2.0.2 2017-06-01 14:00:42 +02:00
Damien Arrachequesne
d8644869fe [chore] Bump debug to version 2.6.8 (#1123) 2017-06-01 13:48:54 +02:00
Damien Arrachequesne
214a57fc5b [test] Launch browser tests on localhost by default (#1122) 2017-06-01 13:48:36 +02:00
Damien Arrachequesne
8091591422 [fix] Do not update the opts.query reference (#1121) 2017-06-01 12:35:31 +02:00
Damien Arrachequesne
4f71bd23de [chore] Release 2.0.1 2017-05-09 01:40:32 +02:00
Damien Arrachequesne
d30914d11b [chore] Release 2.0.0 2017-05-09 01:15:10 +02:00
Damien Arrachequesne
9e7b543e13 [chore] Bump engine.io to version 3.1.0 (#1109) 2017-04-28 23:21:15 +02:00
Damien Arrachequesne
442587e91a [chore] Bump dev dependencies (#1108) 2017-04-28 22:05:01 +02:00
Damien Arrachequesne
ff4cb3eed0 [feat] Move binary detection to the parser (#1103) 2017-04-25 00:28:50 +02:00
Lucian Buzzo
b4c7e49607 [chore] Bump debug to version 2.6.4 (#1101) 2017-04-24 23:48:08 +02:00
Guillermo Rauch
3f19445e37 Merge pull request #1096 from satya164/patch-1
Fix dependencies
2017-04-11 11:40:27 -07:00