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
Michael de Wit
e700bd28f9
Switched to xmlhttprequest-ssl package, a fork of xmlhttprequest.
2015-05-29 13:24:03 +02:00
Guillermo Rauch
67ca376946
Merge branch 'master' of github.com:Automattic/engine.io-client
2015-05-27 12:59:43 -07:00
Guillermo Rauch
cabc130675
websocket: improve firing of drain in websocket transport
2015-05-27 12:59:20 -07:00
Guillermo Rauch
6ac9ac438a
socket: clean up buffers right after close event, not on a different tick
2015-05-27 12:58:48 -07:00
Guillermo Rauch
54680e6bcc
change the semantics of the write callback for polling transports. fire upon flush, not drain
2015-05-27 12:57:03 -07:00
Luigi Pinca
f9d1becfba
socket: fix host parsing for IPv6 URLs
2015-05-02 15:17:13 +02:00
Jeremie Miller
8874e795c2
the 'ok' string isn't very useful, but since this is text and we forced xhr to return an arraybuffer earlier, make it text again
2015-04-12 09:37:42 -06:00
Guillermo Rauch
4f87aae6ee
socket: handle parser errors appropriately
2015-04-08 08:32:02 -07:00
Guillermo Rauch
40de4b1cc4
style
2015-04-08 08:29:22 -07:00
Guillermo Rauch
d31a3931ae
Merge pull request #379 from adrai/master
...
introduce extraHeaders (cookies)
2015-04-06 14:17:57 -07:00
Guillermo Rauch
87ee832756
Merge pull request #375 from nkzawa/patch-9
...
Fix error when passing WebSocket#send the second argument on Safari
2015-04-05 17:26:44 -07:00
Guillermo Rauch
fb7c1984e8
expose ping and pong events
2015-04-05 15:46:30 -07:00