Commit Graph

152 Commits

Author SHA1 Message Date
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
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
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
Guillermo Rauch
f5e841cbdc Fixed style and throw instead of silencing the error in Transport#send 2012-01-03 13:17:29 -08:00
Guillermo Rauch
73026b60e2 Improved Transport#onError 2012-01-03 13:17:14 -08:00
Guillermo Rauch
1c94ceec60 Expose transport options as properties. 2012-01-03 13:16:59 -08:00
Guillermo Rauch
642b965d7b Added defense to Socket#onClose 2012-01-03 13:16:33 -08:00
Guillermo Rauch
d86a766104 Added Socket#onError 2012-01-03 13:16:25 -08:00
Guillermo Rauch
3fed6df2af Fixed Socket#close and added close reason 2012-01-03 13:16:07 -08:00
Guillermo Rauch
82742c3cb3 Added method to set ping timeout 2012-01-03 13:15:51 -08:00
Guillermo Rauch
59d3310578 Added onHandshake 2012-01-03 13:15:39 -08:00
Guillermo Rauch
2ba029695f Added defense to onPacket handler 2012-01-03 13:15:03 -08:00
Guillermo Rauch
e7520a6836 Moved upgrade probes start to onOpen handler 2012-01-03 13:14:43 -08:00
Guillermo Rauch
6fae597966 Make sure to flush upon upgrade completion 2012-01-03 13:14:29 -08:00
Guillermo Rauch
e442540a45 Added error handling and closing reason to current socket transport 2012-01-03 13:14:09 -08:00
Guillermo Rauch
1cb04d41ed Removed probes upon open 2012-01-03 13:13:34 -08:00
Guillermo Rauch
6b19d655ee Make sure query object is cloned upon transport creation 2012-01-03 13:13:16 -08:00
Guillermo Rauch
cfcebef5a0 Added support for both http/ws URIs in Socket constructor. 2012-01-03 13:12:48 -08:00
Guillermo Rauch
6222cba321 Fixed event-emitter from socket.io 2012-01-03 13:12:33 -08:00
Guillermo Rauch
ebe3eb6052 Removed engine refernece passed to transport constructor. 2011-12-31 13:11:55 -05:00
Guillermo Rauch
d81aa11f8b Removed duplicate Socket#open 2011-12-31 13:11:12 -05:00
Guillermo Rauch
3d3d4218e9 Fixed websocket client dependency. 2011-12-31 09:21:13 -05:00
Guillermo Rauch
efa41a245c Fixed; make sure to send cookies in cross domain requests. 2011-12-30 16:10:37 -05:00