Commit Graph

593 Commits

Author SHA1 Message Date
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
Tom Atkinson
dc0482a839 Enable supportsBinary when running as a node client 2015-04-01 15:08:47 +02:00
Adriano Raiano
ed697edae6 do not special case cookies, introduce extraHeaders 2015-03-23 21:50:10 +01:00
Adriano Raiano
73970be23e introduce cookies 2015-03-13 16:17:12 +01:00
Naoyuki Kanezawa
86c74520cd fix error when passing WebSocket#send second argument on Safari 2015-02-19 03:35:07 +09:00
Naoyuki Kanezawa
f0096f6cbd Merge branch 'master' into compression
Conflicts:
	package.json
2015-01-22 03:56:03 +09:00
Roman Shtylman
92e08eee01 fix reference to this (typo from self commit) 2015-01-11 16:59:55 -08:00
Guillermo Rauch
e3fe9a2f44 Merge pull request #366 from Automattic/fix-default-port
fix default port detection when host is specified
2015-01-11 16:33:12 -08:00
Roman Shtylman
bfc48ec4ad fix default port detection when host is specified
This fixes an issue when a full url is specified (i.e.
http://service.com) the port would be the port from the page and not the
uri string. This is easily exposed if using external engine.io servers
on a page served up by localhost:3000 or similar from a development
page.
2015-01-11 16:32:35 -08:00
Guillermo Rauch
d0e8643d05 Revert "migrate this usage to self to help with client side minification"
This reverts commit d725d91db2.
2015-01-11 15:59:43 -08:00
Roman Shtylman
d725d91db2 migrate this usage to self to help with client side minification
`this` cannot be effectively minified but using a local self allows for
local minifcation.
2015-01-11 15:51:35 -08:00
Naoyuki Kanezawa
f6bf9f807f support permessage-deflate 2015-01-06 03:20:08 +09:00
Guillermo Rauch
e352dbf834 Merge pull request #356 from rase-/add/ssl-options
Add ssl options
2014-12-04 13:40:33 -03:00