Commit Graph

1555 Commits

Author SHA1 Message Date
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
Satyajit Sahoo
628eb3bcb0 Fix dependencies
Few dependencies were in devDependencies, which made it impossible to build with `yarn --production`
2017-04-11 17:53:22 +05:30
Dominik Palo
d32bc5bc5d [docs] Fix messed events documentation (#1089) 2017-03-19 00:38:37 +01:00
SwhGo_oN
2135ed8b85 [docs] Fix Manager constructor documentation (#1093) 2017-03-19 00:37:07 +01:00
Esteban Lussich
25321d1dc6 [docs] Fix format in API.md (#1090) 2017-03-09 08:58:53 +01:00
Damien Arrachequesne
9064608513 [docs] Add note regarding the Emitter class (#1079) 2017-02-22 13:07:43 +01:00
Damien Arrachequesne
49fb3e035b [fix] Run tests on the minified files (#1042) 2017-02-22 12:30:16 +01:00
Rainmen-xia
4af8fd3f22 [docs] Add missing path option in the documentation (#1078) 2017-02-22 07:58:56 +01:00
Damien Arrachequesne
2dcc794b8f [feature] Allow the use of a custom parser (#1075)
See https://github.com/socketio/socket.io/pull/2829
2017-02-20 21:46:02 +01:00
Jianru Lin
4322cf200f [docs] Fix typo (#1076) 2017-02-20 13:44:20 +01:00
sgress454
1ac8374d64 [chore] Bump engine.io-client to version 2.0.2 (#1074)
Includes the following (from engine.io-client changelog):

* [chore] Bump ws to version 1.1.2 (vulnerability fix) ([#539](https://github.com/socketio/engine.io-client/issues/539))
* [fix] Fix extraHeaders option in browser ([#536](https://github.com/socketio/engine.io-client/issues/536))
2017-02-16 21:59:57 +01:00
Christian Freitag
3d63875498 [chore] Bump socket.io-parser to version 2.3.2 (#1071) 2017-02-16 21:58:58 +01:00
Tim Tyrrell
8fc4b44a6c [docs] Fix typo (#1066) 2017-02-13 23:52:56 +01:00
Damien Arrachequesne
a98f94d1ae [chore] Bump engine.io-client to version 2.0.0 (#1062) 2017-01-23 23:17:20 +01:00
Damien Arrachequesne
fcb5c43ffe [fix] Add nsp prefix to socket.id (#1058)
So the socket ids on the client and on the server are equals.
2017-01-13 16:53:44 +01:00
Damien Arrachequesne
ba5dca38eb [test] Update browsers matrix (#1059) 2017-01-13 16:51:47 +01:00
Damien Arrachequesne
7a533cda5c [chore] Update issue template with fiddle (#1057) 2017-01-10 10:17:37 +01:00
Damien Arrachequesne
55411dfd24 [docs] Add connect_error and connect_timeout events (#1051) 2017-01-03 08:03:37 +01:00
Damien Arrachequesne
558163d766 [docs] API documentation (#1049) 2016-12-22 09:06:14 +01:00