Commit Graph

198 Commits

Author SHA1 Message Date
Guillermo Rauch
b834862454 Removed no-longer needed callback. 2012-01-14 15:07:06 -08:00
Guillermo Rauch
5bc9c7e132 Made client buffer/flush work more like server. 2012-01-14 13:52:24 -08:00
Guillermo Rauch
5f0d7fb7e9 Removed noop packet test. 2012-01-14 10:40:23 -08:00
Guillermo Rauch
a23405bfea Fixed close packet sending. 2012-01-14 10:36:44 -08:00
Guillermo Rauch
81a1428da2 Merge branch 'master' into upgrade 2012-01-11 11:23:11 -08:00
Guillermo Rauch
2a521830d1 Pre-emptively assign an UID for every request. 2012-01-11 11:22:57 -08:00
Guillermo Rauch
3b558630d9 Added upgrade packet.
This packet gets sent by the upgrading transport that completed the
probe (ping/pong), once the client confirms that it's now considered
the main transport.
2012-01-09 09:00:40 -08:00
Guillermo Rauch
5c3d3a5739 Improved #flush, #sendPacket. 2012-01-09 08:55:40 -08:00
Guillermo Rauch
b417e8df6e Avoid collisions between upgrading transports 2012-01-09 08:55:13 -08:00
Guillermo Rauch
a2a8ec126f Keep reference of flush bound to the instance around. 2012-01-09 08:54:50 -08:00
Guillermo Rauch
81eb2c37f7 Make sure Polling#write updates the Transport#writable property. 2012-01-09 08:53:58 -08:00
Guillermo Rauch
4c9960ae27 Claned up Transport concept of buffering. 2012-01-09 08:50:12 -08:00
Guillermo Rauch
63e711885f Simplified Polling#pause. 2012-01-09 08:43:06 -08:00
Guillermo Rauch
ca56e61847 Fixed WS#write 2012-01-04 22:48:54 -08:00
Guillermo Rauch
9c70561e00 Refactored WS#write 2012-01-04 16:08:17 -08:00
Guillermo Rauch
d7b07367ed writeMany is gone, write now handles arrays directly. 2012-01-04 16:07:55 -08:00
Guillermo Rauch
fed78d3607 Started finishing Polling#pause. 2012-01-04 16:07:30 -08:00
Guillermo Rauch
b4166271dd Refactored this again, this time I like it. 2012-01-04 16:06:45 -08:00
Guillermo Rauch
364408d0ee Implemented a public sendMany. I hate public props. 2012-01-04 16:06:21 -08:00
Guillermo Rauch
4c7d127557 Fixed WS write and writeMany 2012-01-04 13:17:58 -08:00
Guillermo Rauch
421e152b6b Fixed polling write and writeMany 2012-01-04 13:17:41 -08:00
Guillermo Rauch
bbf2819b0e Added more instrumentation 2012-01-04 13:15:02 -08:00
Guillermo Rauch
a22006fc55 Made the parser tests a little more realistic. 2012-01-04 13:09:04 -08:00
Guillermo Rauch
70a663ae9f Fixed Transport#doWrite implementations 2012-01-04 13:08:46 -08:00
Guillermo Rauch
187df309b8 Flush buffer upon open. 2012-01-04 13:08:24 -08:00
Guillermo Rauch
417b213576 Reworked flush logic. 2012-01-04 13:08:11 -08:00
Guillermo Rauch
6766dc09aa Pass packet directly - give more flexibility to transport. 2012-01-04 13:07:59 -08:00
Guillermo Rauch
d212ab3336 Added instrumentation 2012-01-04 13:07:52 -08:00
Guillermo Rauch
249fb89c49 Added transport unit tests 2012-01-03 13:26:29 -08:00
Guillermo Rauch
ea69aee16a Bumped ws 2012-01-03 13:26:12 -08:00
Guillermo Rauch
2ef709b284 Added back load/defer utils from socket.io
Added JSON parse from jquery
2012-01-03 13:25:56 -08:00
Guillermo Rauch
7641beecb5 Fixed websocket uri 2012-01-03 13:25:42 -08:00
Guillermo Rauch
32fdf49498 FIxed websocket constructor. 2012-01-03 13:25:29 -08:00
Guillermo Rauch
1884aa04bb Fixed polling uri builder 2012-01-03 13:25:16 -08:00
Guillermo Rauch
7b49cdbedb Fixed doClose 2012-01-03 13:25:07 -08:00
Guillermo Rauch
21a552e7b6 Fixed Polling data handler 2012-01-03 13:24:55 -08:00
Guillermo Rauch
857e58a953 Clean up polling transport 2012-01-03 13:23:36 -08:00
Guillermo Rauch
dab713aafe Make sure to conserve the error on Request#onError 2012-01-03 13:23:15 -08:00
Guillermo Rauch
72236e944d Added debugging to Request 2012-01-03 13:23:04 -08:00
Guillermo Rauch
fd6f99d9cc Added withCredentials for CORS cookie support, improved error hadnling and ensured that we call onData outside of the try/catch 2012-01-03 13:22:26 -08:00
Guillermo Rauch
4b3d525e60 Fixed style 2012-01-03 13:22:15 -08:00
Guillermo Rauch
122d323634 Fixed style 2012-01-03 13:21:58 -08:00
Guillermo Rauch
c175b39d8d Added separate error handling to #write and #doPoll 2012-01-03 13:21:18 -08:00
Guillermo Rauch
1c93b30de9 Removed error handling from XHR#request to personalize the error 2012-01-03 13:20:54 -08:00
Guillermo Rauch
0f47a813ad Fixed XHR#doOpen 2012-01-03 13:20:40 -08:00
Guillermo Rauch
470a2e50cc Added cache busting for XHR uri and fixed style 2012-01-03 13:20:20 -08:00
Guillermo Rauch
4d998e0f8b Simplified JSONP: removed setIndex and leveraged uri() 2012-01-03 13:19:57 -08:00
Guillermo Rauch
845f71224e Moved polling polimorphic constructor to transports index 2012-01-03 13:18:30 -08:00
Guillermo Rauch
cb05bc80f6 Refactored transports index deps 2012-01-03 13:18:13 -08:00
Guillermo Rauch
f1666cbd99 Fixed flashsocket check 2012-01-03 13:18:00 -08:00