51 Commits

Author SHA1 Message Date
Guillermo Rauch
aef5027640 Make sure to write a packet (of type noop) when closing a poll. This solves a problem
with cross-domain requests being flagged as aborted and reconnection being triggered.
2011-06-22 04:08:28 -03:00
Guillermo Rauch
aeac79faa9 Fixed; restored headers in POST responses. 2011-06-21 20:34:20 -03:00
Guillermo Rauch
903f7ec9ff Fixed cross-domain POST XHR requests for Firefox. 2011-06-21 20:17:24 -03:00
Guillermo Rauch
962736a47a Reverting to more lightweight htmlfile framing. 2011-06-21 04:59:29 -03:00
Guillermo Rauch
57d33a4a97 Remove graceful close, as web implementations don't need it. 2011-06-21 01:09:11 -03:00
Guillermo Rauch
5518f8cb2c Added support for CORS of POST requests. 2011-06-21 01:08:25 -03:00
Guillermo Rauch
e55c5e91fb Fix for htmlfile 2011-06-20 17:50:26 -03:00
Arnout Kazemier
043b5e8063 Only require flashpolicy when the we create a function
Fixes for handshakes
2011-06-20 10:04:01 +02:00
Guillermo Rauch
2be18c8324 Fixed style.
Changed; make sure logging is lowercase.
2011-06-18 04:43:23 -03:00
Arnout Kazemier
ab0c0d110c Added tests for the policy file server
Changed `update:` back to `set:` because it's more pretty
2011-06-18 01:13:44 +02:00
Arnout Kazemier
26a30c5863 Added WIP flashsocket 2011-06-17 23:10:23 +02:00
Guillermo Rauch
72936ef1c5 Changed; JSONP flagged for POST url decoding. 2011-06-17 15:50:53 -03:00
Guillermo Rauch
ad8f7866cb Added support for urlencoded POST. 2011-06-17 15:50:40 -03:00
Guillermo Rauch
0c324e0030 Fixed json-p polling comment header. 2011-06-17 14:47:21 -03:00
Guillermo Rauch
cddae4226c Fixed drained setting in the HTMLFile transport. 2011-06-16 14:52:52 -03:00
Guillermo Rauch
1a3fc57ba4 Fixed WebSocket#flush.
Fixed style.
2011-06-16 14:52:34 -03:00
Guillermo Rauch
9f19145c4d Fixed style. 2011-06-16 11:05:52 -03:00
Guillermo Rauch
cecd0296af Added instrumentation for websocket packets. 2011-06-12 19:50:22 -03:00
Guillermo Rauch
d80a5f37a0 Added instrumentation for xhr packets. 2011-06-12 19:50:12 -03:00
Guillermo Rauch
b9e138dc34 Added optimization to write one buffer.
Fixed bug where relying on the `drain` event when there's nothing to drain would
prevent volatile messages from ever being sent.
Added websocket write instrumentation.
2011-06-10 18:14:31 -03:00
Guillermo Rauch
abde1ca389 Updated jsonp callback format. 2011-05-30 11:38:19 -03:00
Guillermo Rauch
76bec7bc7e Faster websocket parsing (thanks mraleph) 2011-05-30 11:37:59 -03:00
Guillermo Rauch
7b486e2b37 Make sure to set drain to false upon htmlfile transport write. 2011-05-22 20:18:03 -07:00
Guillermo Rauch
b76901eb56 Removed writeVolatile special handling for polling transports, since it's now handled
elegantly across all transports, and polling drained-ness doesn't concern us.
2011-05-22 14:22:41 -07:00
Guillermo Rauch
e436f90ac9 Removed Transport#drained initialization from WebSocket transport constructor. 2011-05-22 13:25:13 -07:00
Guillermo Rauch
f5edca935d Added Transport#writeVolatile for every transport.
Removed WebSocket#writeVolatile, inherit from Transport instead.
Removed `drain` listener from WebSocket onSocketConnect method.
2011-05-22 13:18:51 -07:00
Guillermo Rauch
88d5daa3b5 Finished jsonp-polling transport. 2011-05-19 15:35:18 -07:00
Guillermo Rauch
4f4d25e954 Fixed parameter names for htmlfile 2011-05-19 14:53:56 -07:00
Guillermo Rauch
f47a9dc110 Fixed parameter names for xhr-polling 2011-05-19 14:51:55 -07:00
Guillermo Rauch
882fb96567 Fixed; constructor parameter names for websocket. 2011-05-19 14:51:08 -07:00
Guillermo Rauch
287dd40dd2 Fixed jsonp-polling and xhr-polling doWrite with no data. 2011-05-19 13:25:35 -07:00
Guillermo Rauch
ccac8fe8a4 Fixed; disable the Nagle algorithm for websocket. 2011-05-19 13:17:42 -07:00
Guillermo Rauch
43f6071f4f Fixed jsonp-polling writes. 2011-05-19 13:17:25 -07:00
Guillermo Rauch
b4b7c0b428 Fixed; override clearTimeouts for clearing polling timeout for polling transports. 2011-05-19 13:16:59 -07:00
Guillermo Rauch
4f293ae44e Completed WebSocket transport.
Added (naive) support for closing frames.
2011-05-18 20:39:24 -07:00
Guillermo Rauch
a9ed766b85 Fixed; this.connection is undefined. 2011-05-17 18:51:44 -07:00
Guillermo Rauch
c0481f615e Fixed json-p debug instrumentation. 2011-05-17 16:11:51 -07:00
Guillermo Rauch
dfae47d42a Make sure to disable heartbeat intervals in polling transports. 2011-05-17 16:10:47 -07:00
Guillermo Rauch
f5133b6a6f Fixed style. 2011-05-17 16:10:33 -07:00
Guillermo Rauch
60ad6e3ceb Fixed; HTMLFile#doWrite never gets called since it's an HTTP non-polling transport. 2011-05-16 19:44:37 -07:00
Guillermo Rauch
968afd89a5 Fixed handling of incoming POST requests to a XHR transport.
Fixed payloading encoding.
2011-05-15 19:07:04 -07:00
Guillermo Rauch
5f028c5ca9 Fixed; moved data decoding logic into base HTTP transport interface. 2011-05-15 13:36:21 -07:00
Guillermo Rauch
a27a6ad2b6 Changed; only output CORS headers for cross-domain requests to minimize framing.
Changed debug instrumentation.
2011-05-08 20:38:53 -07:00
Guillermo Rauch
0a69b580c4 Added WebSocket#writeVolatile (and WebSocket#drained state)
Added WebSocket#doClose
2011-05-08 20:38:10 -07:00
Guillermo Rauch
6665e08cb7 Added HTTPTransport#doClose. 2011-05-08 20:37:49 -07:00
Guillermo Rauch
600c05bbbe Changed; leveraged Transport#close instead of Transport#write with empty string.
Added more debug instrumentation.
2011-05-08 20:37:08 -07:00
Guillermo Rauch
d5e922ba12 Changed debug statement. 2011-05-08 20:36:49 -07:00
Guillermo Rauch
ed12f347eb Changed; make sure to clear polling timeout if the connection closes.
Added "clearPollTimeout" method
2011-05-07 18:33:17 -07:00
Guillermo Rauch
d2c74536e0 Changed; improved htmlfile framing size. 2011-05-06 17:12:52 -07:00
Guillermo Rauch
c2d0774d46 Removed const (slow) 2011-05-06 15:12:51 -07:00