Denis Yaremov
22c28a24b7
[fix] Fix extraHeaders option in browser ( #536 )
2017-02-01 14:46:07 +01:00
Damien Arrachequesne
b1baf8d998
[feature] Allow extraHeaders to be set for browser clients in XHR requests ( #519 )
2016-12-30 17:08:38 +01:00
Damien Arrachequesne
c01b9a8560
[feature] Add support for per transport options ( #518 )
2016-12-30 16:46:36 +01:00
magicdawn@qq.com
9cfc626bf7
[feature] add localAddress option ( #487 )
2016-10-31 01:34:19 +01:00
Daniel Schlosser
8be5864169
[feature] Added flag forceNode to override the normal behavior of prefering Browser based implementations. ( #469 )
2016-10-30 23:49:55 +01:00
Ben Ripkens
3427e744e1
Enable definition of timeouts for xhr-polling
...
The definition of timeouts is desirable to cancel long outstanding
requests automatically via browser mechanisms. Specifically, it can
happen that lots of pending XHR requests are scheduled, but are never
purged by the browser due to the lack of a timeout definition.
2016-10-30 22:06:00 +01:00
Jarmo Isotalo
a38551f45f
Fixed regression creating connection over wss from node
2016-10-28 04:14:52 +03:00
Jarmo Isotalo
9abcb152da
Fixed regression creating connection over https from node
2016-10-28 02:58:42 +03:00
Luigi Pinca
7acae3db15
[fix] Obfuscate ActiveXObject occurrences ( #509 )
...
Some corporate firewalls/proxies such as Blue Coat prevent JavaScript
files from being downloaded if they contain the word "ActiveX".
2016-10-24 01:00:45 +02:00
besaplla
618758543e
[fix] onPacket now emits data on 'closing' state as well ( #484 )
2016-10-23 09:15:11 +02:00
Naoyuki Kanezawa
410189e417
[fix] remove a workaround for ios ( #465 )
2016-10-23 08:44:35 +02:00
Tom Atkinson
083a139488
[fix] Set accept header to */* to support react app proxy ( #508 )
2016-10-23 08:43:52 +02:00
Tom Atkinson
b18f5b16df
[perf] Add all properties to the socket in the constructor ( #488 )
2016-10-20 18:29:32 +02:00
Marshall Thompson
6b2b3bdaaa
[chore] Use more-specific imports for StealJS compatibility ( #467 )
...
This allows browser loaders like StealJS to load this package without showing any errors or warnings in the console (since you the only way to check if a file exists from the browser it to request it, node-style folder assumptions can't be made without potential 404s.)
The package works fine with the StealJS build tools, since they're node based, but this lets allows it to work with the browser version.
2016-10-20 18:10:30 +02:00
Aaron Carlino
eb24245565
[fix] Define "requestsCount" var and "requests" hash unconditionally ( #490 )
...
There are situations in which `global.document` can be defined after the file is loaded, but before a request is created.
2016-10-20 17:55:05 +02:00
Damien Arrachequesne
aa48d134d4
[style] Add missing semi-colon ( #501 )
2016-10-05 10:29:43 +02:00
Mateusz Burzyński
f9274e181e
[fix] Fix issue with errors during WebSocket creation not being caught at all ( #475 )
...
Fixes #474 .
2016-10-05 07:35:30 +02:00
Miguel Grinberg
ea29487488
[fix] Use xhr.responseText if xhr.response is not provided ( #483 )
2016-10-05 07:31:28 +02:00
Damien Arrachequesne
67ac4b7e1d
Revert "default rejectUnauthorized to true" ( #496 )
...
This reverts commit 2c55b278a4 , which breaks websocket transport under node v0.10 (#494 ).
2016-10-05 07:06:38 +02:00
Doug Wade
22ec2d2b97
Fix test target by specifying valid ws binary type
2016-06-29 11:27:05 -07:00
Guillermo Rauch
2c55b278a4
default rejectUnauthorized to true
2016-03-30 08:30:14 -07:00
Diga Widyaprana
a526395363
Add inline eslint config
...
- ActiveXObject global in lib/xmlhttprequest.js
- Allow small letter constructor in test/transport.js
2016-03-01 00:41:09 +08:00
Diga Widyaprana
e2930f8aac
Eslint manual fix
2016-03-01 00:41:08 +08:00
Diga Widyaprana
fd90acf4b6
Eslint autofix
2016-02-29 20:43:08 +08:00
Stefan Dobrev
9c08f405a3
Safely resolve ws module.
...
After changing the `ws` dependency to be ignored, not exluded, by https://github.com/socketio/engine.io-client/pull/451 if the target runtime does not provide a `ws` module an error is throw. This is the case with NativeScript which currently does not have a WebSocket implementation. The change is using safe resolution with try-catch preseving the old behavior in a controlled manner.
2016-01-12 18:03:16 +02:00
MrBar42
556485538a
added fallback to insertAt parentNode
...
this prevents errors when there aren't any scripts tags on the document
2016-01-10 17:28:25 +02:00
Damien Arrachequesne
9c449675cb
Fix tests in IE < 10 (WebSocket not supported)
2016-01-03 22:23:48 +01:00
Damien Arrachequesne
298250c133
Change variable name from isBrowserWebSocket to BrowserWebSocket
2016-01-03 22:22:11 +01:00
Damien Arrachequesne
0ee8de320a
Fix ws in browser
2016-01-02 20:32:37 +01:00
Damien Arrachequesne
1cf4bdea5f
Fix global context
2016-01-01 14:52:53 +01:00
Damien Arrachequesne
50f97cdf97
Add global context
2016-01-01 14:43:30 +01:00
Damien Arrachequesne
a24e5ee877
package: bump ws
2016-01-01 13:49:31 +01:00
Guillermo Rauch
1e7b9ebcb8
Merge pull request #416 from lpinca/use/yeast
...
transports: use `yeast` to generate the cache busting id
2015-12-02 09:27:52 -08:00
nkzawa
1096ca6f61
fix ipv6 support and add tests
2015-12-02 17:59:11 +09:00
hell
54f020ec1a
ipv6 url support
2015-12-02 15:54:17 +09:00
nkzawa
a1c464b901
fix a test
2015-12-01 16:52:40 +09:00
nkzawa
f848c0db6c
remove compress option from control packets
2015-12-01 15:36:29 +09:00
nkzawa
cc8200fd21
threshold for permessage-deflate
2015-12-01 15:31:31 +09:00
nkzawa
f58f20d303
Fix typo
2015-11-30 22:12:58 +09:00
Tom Atkinson
b4fe763833
Fix packet options
2015-11-23 22:56:34 +01:00
nkzawa
faa0913703
fix test failures on iOS 6.1
2015-11-22 16:39:28 +09:00
Guillermo Rauch
d6d4ec22fa
socket: remove duplicate declaration ( fixes #434 )
2015-11-19 09:26:34 -08:00
Guillermo Rauch
3e64c3fcb6
Merge pull request #383 from Nibbler999/binary-node-client
...
Enable supportsBinary when running as a node client
2015-11-18 18:56:36 -08:00
Naoyuki Kanezawa
b5613dc23c
Merge pull request #399 from FoghostCn/patch-1
...
fix rejectUnauthorized bug
2015-11-19 11:17:45 +09:00
Luigi Pinca
874484cc1e
transports: use yeast to generate the cache busting id
2015-09-12 08:28:15 +02:00
Josh Kruder
38bde8c27e
Fix failing iphone and android connection tests.
2015-08-29 21:04:35 +03:00
Guillermo Rauch
e595a72d8e
Merge pull request #398 from Nibbler999/ws-write-packet-options
...
Fix websocket packet writing
2015-06-06 16:55:29 -07:00
Foghost
5ffe4478fb
fix rejectUnauthorized bug
...
fix bug even I set rejectUnauthorized=false it also throw err 'unable to verify the first certificate'
2015-06-02 17:53:43 +08:00
Guillermo Rauch
5138cfae3a
Merge pull request #396 from mjwwit/master
...
Switched xmlhttprequest dependency to a versioned one
2015-06-01 11:22:23 -04:00
Tom Atkinson
295f91a94f
Fix websocket packet writing
2015-05-31 00:47:59 +02:00