Damien Arrachequesne
b47efb270d
[fix] Remove any reference to the global variable
...
Related: https://github.com/socketio/socket.io-client/issues/1166
2018-11-07 23:31:49 +01:00
Damien Arrachequesne
bb3a21db1f
[chore] Bump ws to version 6.1.0 ( #602 )
2018-11-07 23:17:19 +01:00
Damien Arrachequesne
d95e38f6b6
[chore] Update the Makefile
2018-11-07 23:16:54 +01:00
Damien Arrachequesne
b57e06304e
[test] Update travis configuration
2018-11-07 23:15:29 +01:00
JinHyuk Kim
48f340ec12
[refactor] Fix a small typo and code styling ( #88 )
2018-11-07 22:53:25 +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
Damien Arrachequesne
3e2f415f49
[chore] Bump ws to version 6.1.0 ( #564 )
2018-11-02 07:39:38 +01:00
Jacco Flenter
ebf1a96f42
[feat] Allow configuration of Access-Control-Allow-Origin value ( #511 )
...
It's now possible to specify an origins value (default value is '*') when initialising the engine. This value will be returned as the Access-Control-Allow-Origin value.
Related: #449
2018-11-02 07:38:16 +01:00
Damien Arrachequesne
0151c6a684
[chore] Release 3.2.1
2018-11-02 07:29:08 +01:00
shapel
bc7b2393de
[fix] Processing error code on abort connection ( #562 )
...
Fixes #561
2018-11-02 07:25:53 +01:00
Damien Arrachequesne
021a7dc751
[docs] Point the status badge towards the master branch
2018-11-02 06:20:43 +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
1f2fc43d74
[chore] Release 2.1.3
2018-11-01 06:44:53 +01:00
Amit Portnoy
19694042f5
[chore] Update to blob@0.0.5 (avoid reference to 'global') ( #107 )
...
Source: https://github.com/amitport/blob/releases/tag/v0.0.5
Closes #99
Related https://github.com/socketio/socket.io-client/issues/1166
2018-11-01 06:31:42 +01:00
Damien Arrachequesne
2377dcc613
[fix] Do not mutate the input upon packet encoding ( #105 )
...
Fixes #95
2018-11-01 06:26:16 +01:00
Damien Arrachequesne
ebdf467371
[test] Add a basic test for UTF-8 encoding/decoding ( #106 )
2018-11-01 06:26:13 +01:00
Damien Arrachequesne
e184cac0fa
[chore] Pin zuul version
...
The CI fails with the new version: https://travis-ci.org/socketio/engine.io-parser/jobs/448690970
> /home/travis/build/[secure]io/engine.io-parser/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-10-31 07:50:51 +01:00
Damien Arrachequesne
d848f0fc82
[refactor] Remove any reference to the global variable ( #103 )
...
Related #99
2018-10-31 06:23:32 +01:00
Damien Arrachequesne
3bc16f5938
[refactor] Remove custom exports from utf8.js file ( #102 )
...
AMD and browser exports are useless here.
2018-10-31 06:23:08 +01:00
Damien Arrachequesne
ecf0c1465c
[test] Update travis configuration ( #101 )
2018-10-31 06:02:03 +01:00
Damien Arrachequesne
916e4bbc45
[chore] Bump dev dependencies ( #100 )
2018-10-31 06:01:29 +01:00
Damien Arrachequesne
7e35f901b8
[docs] fix this scope in the chat example
...
`user is typing` messages were not properly removed
Closes #3291
2018-08-28 09:05:44 +02:00
Damien Arrachequesne
2258c034fa
[chore] Update issue template
2018-08-21 13:22:38 +02:00
Damien Arrachequesne
2dbec77a38
[chore] Update issue template
2018-08-21 13:21:14 +02:00
Andrew Stelmach
d97d873aee
[docs] update README.md ( #3309 )
2018-08-18 23:32:07 +02:00
Damien Arrachequesne
8372591652
[chore] Release 2.1.1
2018-05-17 23:23:01 +02:00
Damien Arrachequesne
e0b2cb0c5a
[chore] Release 2.1.1
2.1.1
2018-05-17 23:22:49 +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
JinHyuk Kim
6a16ea1192
[test] Remove unnecessary assertion in test case ( #556 )
2018-04-30 07:39:40 +02:00
Sleiman Sleiman
1decae341c
[feat] Add local flag to the socket object ( #3219 )
...
To match the behaviour on the namespace (see #2628 ).
2018-04-27 13:03:25 +02:00
Donut
0279c47c8c
[docs] Convert the chat example to ES6 ( #3227 )
2018-04-27 13:00:27 +02:00
Damien Arrachequesne
2917942b3e
[docs] Clarify private messaging in the emit cheatsheet ( #3232 )
...
The previous version was confusing, as `socket.to(socket.id).emit()` does nothing.
Fixes #3220
2018-04-27 12:50:31 +02:00
Damien Arrachequesne
3eb047fcfd
[chore] Release 2.1.0
2018-03-29 23:30:40 +02:00
Damien Arrachequesne
db831a3de4
[chore] Release 2.1.0
2.1.0
2018-03-29 23:30:03 +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
ac945d1eba
[feat] Add support for dynamic namespaces ( #3195 )
...
This follows #3187 , with a slightly different API.
A dynamic namespace can be created with:
```js
io.of(/^\/dynamic-\d+$/).on('connect', (socket) => { /* ... */ });
```
2018-03-29 23:08:08 +02:00
Scott Gress
ad0c052eff
[docs] Add note in docs for origins(fn) about error needing to be a string. ( #2895 )
2018-03-10 09:03:28 +01:00
Damien Arrachequesne
1f1d64bab6
[fix] Include the protocol in the origins check ( #3198 )
...
Previously, the protocol was not taken in account, which caused the following behaviour:
```js
io.origins('https://foo.example.com:443 '); // ok as a string
io.origins(['https://foo.example.com:443 '); // not ok as an array
```
Fixes #3190
2018-03-10 08:56:42 +01:00
Damien Arrachequesne
f4fc517e0f
[fix] Properly emit 'connect' when using a custom namespace ( #3197 )
...
When using a custom namespace with a middleware, the client did not receive the 'connect' event.
Fixes #3082
2018-03-10 08:51:22 +01: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
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
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