Commit Graph

118 Commits

Author SHA1 Message Date
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
Guillermo Rauch
66eb07a90b Fixed XDomainRequest type check. 2011-12-30 16:10:25 -05:00
Guillermo Rauch
9274895848 Naming change: transports emit packets not messages. 2011-12-24 15:09:59 -05:00
Guillermo Rauch
f3306ea1a1 Added util#qs 2011-12-23 12:03:01 -08:00
Guillermo Rauch
4d0d06f771 Cleaned up WS#uri 2011-12-23 12:02:31 -08:00
Guillermo Rauch
89f017579d Added Polling#uri 2011-12-23 11:55:09 -08:00
Guillermo Rauch
f28b6c84aa Fixed Polling#write 2011-12-23 11:54:52 -08:00
Guillermo Rauch
b1e46b0ce9 Fixed writeMany 2011-12-23 11:54:22 -08:00
Guillermo Rauch
238d10645a Changing write signature 2011-12-23 11:53:29 -08:00
Guillermo Rauch
648cb5b6e3 Fixed comment 2011-12-23 11:53:13 -08:00
Guillermo Rauch
1727950a72 Changing write signature 2011-12-23 11:53:00 -08:00
Guillermo Rauch
973ff5cba1 Added probe qs component to probes. 2011-12-23 11:21:53 -08:00
Guillermo Rauch
eebd224afe Added extra query parameters support to createTransport 2011-12-23 11:21:31 -08:00
Guillermo Rauch
152fdd9864 Fixed transport initialization. 2011-12-22 15:46:40 -08:00
Guillermo Rauch
5d862d846d Implemented JSONP#write. 2011-12-22 15:23:56 -08:00
Guillermo Rauch
4b7e0457b2 Removed query util dependency. 2011-12-22 15:23:38 -08:00
Guillermo Rauch
013220a26c Detach form (POST) upon close in JSONP 2011-12-22 15:22:59 -08:00
Guillermo Rauch
56fc7788e4 Corrected global. 2011-12-22 15:16:52 -08:00
Guillermo Rauch
6e335dab42 Reorganized locals in JSONp transport. 2011-12-22 15:16:24 -08:00
Guillermo Rauch
8a43545557 Keep reference to sendXHR. Removed unneeded self 2011-12-22 15:15:25 -08:00
Guillermo Rauch
009715bbcb Instrumented all remaining Socket methods. 2011-12-22 15:15:06 -08:00
Guillermo Rauch
10e8f1be8b Instrumented onMessage and removed unnecessary open handler. 2011-12-22 15:14:15 -08:00
Guillermo Rauch
67f6c4c917 Added missing flush call onOpen. 2011-12-22 15:14:04 -08:00
Guillermo Rauch
dc66e2cdce Added instrumentation to Socket#probe 2011-12-22 15:13:50 -08:00
Guillermo Rauch
6b6f8486cb Listen on open Transport event. 2011-12-22 15:13:26 -08:00
Guillermo Rauch
24c73a4892 Sanity check: clear all events from previous transport in setTransport. 2011-12-22 15:12:58 -08:00
Guillermo Rauch
d791115264 Added instrumentation to createTransport. 2011-12-22 15:12:41 -08:00
Guillermo Rauch
eaff499fc8 Expose jsonp callbacks. 2011-12-22 15:12:17 -08:00
Guillermo Rauch
95176a08be Potential speedup? 2011-12-21 14:41:58 -08:00
Guillermo Rauch
9fceb20d8e Allow for no packet payloads and fixed packet decoding within payloads. 2011-12-21 14:13:21 -08:00
Guillermo Rauch
e6260afe2e Disallow empty payload messages. 2011-12-21 14:12:53 -08:00
Guillermo Rauch
fc6273f8a0 Allow for empty payloads. Only for consistency, we never should send empty payloads. 2011-12-21 14:12:18 -08:00
Guillermo Rauch
736d509963 Allow for empty data (different from _no_ data). 2011-12-21 14:11:54 -08:00
Guillermo Rauch
94d305954c Avoid potentially slow error lookups and make sure you can't use constructor
as a packet type.
2011-12-21 13:29:24 -08:00
Guillermo Rauch
0531a2c9fa Improved packet decoding speed and reliability. 2011-12-21 13:28:05 -08:00