Commit Graph

441 Commits

Author SHA1 Message Date
Tony Kovanen
ca9ad8fecd Ignoring Firefox for now + style 2014-02-15 09:01:16 +02:00
Tony Kovanen
33f7b2fba1 IE and iPhone fixed. Firefox is giving trouble 2014-02-15 08:28:20 +02:00
Tony Kovanen
19456fc0d6 Fixed iPhone 4.3 xhr2 problem 2014-02-12 05:49:59 +02:00
Tony Kovanen
72221d6cfb Really fixed binary support detection 2014-02-09 00:26:49 +02:00
Tony Kovanen
dd0f5e71a2 Fixed websocket binary support detection 2014-02-09 00:23:35 +02:00
Tony Kovanen
1e9fbee95d Fixed setting responseType for XHR2 in Firefox 2014-02-08 21:05:22 +02:00
Tony Kovanen
d6ca4a20db Simpler XHR2 feature detection 2014-02-08 19:40:09 +02:00
Tony Kovanen
a1322d1b0d Better feature detection for XHR2 2014-02-08 18:56:55 +02:00
Tony Kovanen
13ff119772 Making encoding work with callbacks. Not completely there yet. 2014-02-04 00:04:30 +02:00
Tony Kovanen
1c1cfc1f9c Using url parameter for communicating the need for base64 instead of upgrade packet for WebSocket 2014-02-03 02:33:14 +02:00
Tony Kovanen
944e3953ab Nicer feature detection 2014-02-02 19:33:56 +02:00
Tony Kovanen
1067ae80d3 WebSocket's support for binary is now checked, and base64 is used when there is no binaryType. If WebSocket doesn't support binary, this is communicated to the server through the upgrade packet. 2014-02-02 14:44:02 +02:00
Tony Kovanen
e419a13d04 style 2014-02-01 19:01:46 +02:00
Tony Kovanen
552f871b06 Parser now has to figure out whether binary or string data is sent 2014-02-01 14:54:23 +02:00
Tony Kovanen
dc4cab5619 Binary support 2014-02-01 01:52:41 +02:00
Guillermo Rauch
679a357758 polling-xhr: avoid catching user-thrown errors 2014-01-18 09:45:04 -08:00
Guillermo Rauch
9ce2dcd08c style 2014-01-17 10:41:02 -08:00
Guillermo Rauch
d20ad91dc2 util: remove unused hasCORS 2014-01-17 10:28:23 -08:00
Guillermo Rauch
41fa0c3993 remove deferring for faster startup (fixes #174) 2014-01-17 10:23:33 -08:00
Roman Shtylman
3a590c003b remove duplicate xmlhttprequest code
Since we shim the XMLHttpRequest module with our xmlhttprequest.js code
for browser packaging, we do not need the legacy util.request function
and can use the XMLHttpRequest module directly.
2014-01-15 14:18:13 -05:00
mokesmokes
c2d547be54 Fix GH-224, remove sockets array 2014-01-08 20:48:49 +02:00
Guillermo Rauch
fa6c0c9fed socket: emit upgrade errors as upgradeError instead of error 2014-01-05 19:39:57 -03:00
Guillermo Rauch
fa187c48e6 transports: fix node tests error 2013-12-30 21:44:46 -03:00
Guillermo Rauch
29e641bacb polling: improve url timestamp for ie11 and allow force disabling 2013-12-30 15:30:11 -03:00
Guillermo Rauch
4e6c2f447d polling-xhr: handle errors for xhr creation (fixes access denied issues) 2013-12-30 15:27:35 -03:00
Guillermo Rauch
026f5a035a polling-xhr: style 2013-12-30 15:27:22 -03:00
Guillermo Rauch
1ab40e794e socket: more instrumentation for transport creation 2013-12-30 15:25:58 -03:00
Guillermo Rauch
9811a66204 socket: allow explicit false for timestampRequests 2013-12-30 15:25:42 -03:00
Guillermo Rauch
53da167033 socket: accept null as first argument 2013-12-30 15:25:25 -03:00
Guillermo Rauch
cfb719c940 socket: style 2013-12-30 15:23:42 -03:00
Guillermo Rauch
0430bc4a72 transport: style 2013-12-29 15:16:41 -03:00
Guillermo Rauch
f64e22d1b1 use jsonp in favor of XDomainRequest to preserve Cookie headers in all situations [3rd-eden] (fixes #217) 2013-12-20 12:36:33 -03:00
Roman Shtylman
a969aa761a add browserify support
fixes #200
2013-11-01 21:24:46 -04:00
Guillermo Rauch
b917a50f81 Merge pull request #178 from goinstant/stash/catch-xhr-send
Emit errors thrown by xhr.send()
2013-10-17 07:48:40 -07:00
Jonathan Gros-Dubois
55b6302e8a Fixed issue which prevented IE9 and under to pass Cookies to server during handshake 2013-10-17 22:59:04 +11:00
Dainis Tillers
305d703650 Fixed - there is no host property only hostname 2013-09-19 15:15:25 +03:00
Dainis Tillers
f8b68c969e Fixed - flash socket creation should not call websocket doOpen as that will create a websocket and not a flashsocket connection because of changed scope(in websocket transport WebSocket is pointing to value returned by ws library, which in case of IE6,7,8 will be null and in result of that will fail with an error) 2013-09-19 15:15:18 +03:00
Nathan Rajlich
22a4a4b097 websocket: pass undefined as the WebSocket "protocols"
Fixes: https://cloudup.com/cfn0Edwkpya
2013-08-30 20:21:43 -07:00
Guillermo Rauch
c7dc4bd0ce Merge pull request #193 from LearnBoost/add/component/ws
Add and use `component/ws`
2013-08-30 15:58:04 -07:00
Nathan Rajlich
af026a20b2 websocket: remove the "bufferedAmount" checking logic
This code was buggy to begin with, and actually the underlying
technique being used was non-deterministic and wouldn't work in practice
anyways.

The WebSocket client API kinda sucks in this regard, since it's virtually
impossible to implement proper ACKs using the WebSocket API by itself.
2013-08-30 15:46:27 -07:00
Nathan Rajlich
22ffc825cb websocket: no more env sniffing, just require ws
This should make @shtylman very happy...
2013-08-29 09:34:46 -07:00
Tim
967cb09a6b Force timestampRequests for Chromeframe. 2013-08-27 15:33:29 +10:00
Nathan Rajlich
50684ff362 transports: fix WebSocket transport in the web browser
For realz this time...
2013-08-23 15:38:25 -07:00
Nathan Rajlich
af55d53b39 transports: fix WebSocket transport in the web browser 2013-08-23 14:43:00 -07:00
Nathan Rajlich
fe935edf97 socket: pass through the agent option to the Transport 2013-08-22 22:14:56 -07:00
Nathan Rajlich
43414294dd use updated component/global API 2013-08-22 21:46:49 -07:00
Nathan Rajlich
2c1870a77d transports: pass the options to the util.request() function
Probably not strictly necessary in this case...

In fact, I can't seem to find this `poller()` function being used anywhere
in the codebase in the first place! It only seems to be invoked in the tests...
2013-08-22 17:17:55 -07:00
Nathan Rajlich
3c1f28c6cc polling-xhr: pass the agent option to the XMLHttpRequest constructor 2013-08-22 17:16:25 -07:00
Nathan Rajlich
a9846e549f util: add jsdoc comment 2013-08-22 17:15:56 -07:00
Nathan Rajlich
a19e3ab1af util: make the request() helper accept an "options" object 2013-08-22 17:15:02 -07:00