Commit Graph

7697 Commits

Author SHA1 Message Date
Guillermo Rauch
9630a4fe69 Added sprintf util for testing. 2012-01-14 09:37:39 -08:00
Guillermo Rauch
3a0759fb89 Cleaned up WebSocket#send. 2012-01-14 09:37:14 -08:00
Guillermo Rauch
88cfa04de5 Implemented WebSocket#writable. 2012-01-14 09:36:32 -08:00
Guillermo Rauch
15d420d6b2 Added instrumentation to polling payloads. 2012-01-14 09:36:09 -08:00
Guillermo Rauch
2a93f06e27 Implemented draining and orderly close to polling. 2012-01-14 09:35:39 -08:00
Guillermo Rauch
5e9e167ed4 Fixed docs. 2012-01-14 09:35:07 -08:00
Guillermo Rauch
704312271b Added instrumentation to upgrade. 2012-01-14 09:34:57 -08:00
Guillermo Rauch
83c2711009 Implemented Socket buffering/flushing:
- Fires upon upgrade
- Fires when the transport is drained.
2012-01-14 09:34:29 -08:00
Guillermo Rauch
fba2a89b79 Implemented sendPacket API homologous to client API. 2012-01-14 09:34:03 -08:00
Guillermo Rauch
a2f498ac65 Started adding buffering to Socket. 2012-01-14 09:33:01 -08:00
Guillermo Rauch
496ce56f5f Fixed docs. 2012-01-14 09:32:52 -08:00
Guillermo Rauch
89d59598c8 Syntax cleanup. 2012-01-14 09:32:42 -08:00
Guillermo Rauch
45f5b2a113 Fixed debug namespace convention. 2012-01-13 15:32:28 -08:00
Guillermo Rauch
bd7d01a190 Avoid incorrect debug output order. 2012-01-13 15:30:15 -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
6074795b19 Updated express dep for windows compatibility. 2012-01-11 07:41:09 -08:00
Guillermo Rauch
a139809a97 Updated express dep for windows compatibility. 2012-01-11 07:40:44 -08:00
Guillermo Rauch
c005997f11 Merge pull request #361 from 3rd-Eden/ws
use @einaros ws module instead of the old crap one
2012-01-10 13:58:50 -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
0c79fcacbc Added starts of upgrade tests. 2012-01-09 08:35:39 -08:00
Guillermo Rauch
ca56e61847 Fixed WS#write 2012-01-04 22:48:54 -08:00
Guillermo Rauch
475826e69a Added messages ws tests 2012-01-04 17:56:03 -08:00
Guillermo Rauch
3cc7a69b4c Bumped ws.io 2012-01-04 17:53:54 -08:00
Guillermo Rauch
f2459424c1 Added tricky xhr-polling test. 2012-01-04 17:48:11 -08:00
Guillermo Rauch
593db7192f Added first message test 2012-01-04 17:47:52 -08:00
Guillermo Rauch
c2e5d6ff61 Gotta love websocket 2012-01-04 17:46:56 -08:00
Guillermo Rauch
70f8830b3c Added doClose callback for Polling 2012-01-04 17:21:06 -08:00
Guillermo Rauch
f2043f9590 Added callback support to Polling#send, and drain event. 2012-01-04 17:20:48 -08:00
Guillermo Rauch
f51d36f584 Added closing readyState and callback to Transport#doClose 2012-01-04 17:18:12 -08:00
Guillermo Rauch
26e3d1c546 Added closing readyState. 2012-01-04 17:17:58 -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
5587282215 Added more instrumentation to polling 2012-01-04 15:40:48 -08:00
Guillermo Rauch
615c555742 Improved instrumentation. 2012-01-04 15:40:36 -08:00
Guillermo Rauch
767d770e59 Added additional verification step: handshake is only over GET. 2012-01-04 15:40:21 -08:00
Guillermo Rauch
7a4e0c086a Added client close test for websocket. 2012-01-04 14:03:50 -08:00
Guillermo Rauch
38d644ef76 Added client close test. 2012-01-04 13:57:55 -08:00
Guillermo Rauch
4c7e6a675e Fixed data chunks aggregation. 2012-01-04 13:52:20 -08:00
Guillermo Rauch
001d80ac40 Fixed bind, I thought it took an array of arguments. 2012-01-04 13:52:05 -08:00
Guillermo Rauch
1a8b42debc Added missing Transport#onPacket method. 2012-01-04 13:41:38 -08:00