Commit Graph

434 Commits

Author SHA1 Message Date
Mark Mokryn
facf40ad9b emit socket upgrade event after upgrade done 2014-02-09 22:12:34 +02:00
Guillermo Rauch
2b0b281f68 Merge pull request #239 from mokesmokes/closefix
fix GH-207
2014-02-09 08:46:32 -08:00
Brian Malehorn
ebefd5e33a fix parseUri('localhost:80'), add ipv6 addresses 2014-02-09 11:06:33 -05:00
Bruce Lee
0df20215b4 fix captcha in comment 2014-01-27 18:01:30 +08:00
Mark Mokryn
365bc471a5 undo removal of onclose for websocket api compattibility 2014-01-26 23:39:03 +02:00
Mark Mokryn
b583fe4a51 fix GH-207 2014-01-26 21:01:38 +02:00
Guillermo Rauch
3841d7b846 websocket: document ws require 2014-01-22 15:29:07 -08:00
Guillermo Rauch
3655acd620 polling-xhr: fix ie10 webworker tests 2014-01-22 14:56:14 -08: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
Nathan Rajlich
62b647186d websockets: pass the agent option to the WebSocket constructor 2013-08-22 17:04:00 -07:00
Nathan Rajlich
018d7cb301 transport: set the agent field, defaults to false 2013-08-22 14:33:19 -07:00
Nathan Rajlich
164f71085c use "component/has-cors" 2013-08-22 14:16:26 -07:00
Nathan Rajlich
3f957b844c transport: fix whitespace 2013-08-22 13:38:21 -07:00
Nathan Rajlich
732180a082 util: use "component/global" 2013-08-22 13:37:54 -07:00
Nathan Rajlich
5ee23e8e41 use "component/global" 2013-08-22 12:01:28 -07:00
Nathan Rajlich
d0f7549d07 util: more bullet-proof global() function
Somebody could easily add a fake global `window` variable in node, and things
would have been thrown off before. With this logic, the *real* "global" is
always returned.
2013-08-22 11:24:08 -07:00